B2G/gecko/toolkit/components/social/SocialService.jsm
// Adds a provider given a manifest, and returns the added provider.
Adds a provider given a manifest, and returns the added provider.
Adds a provider given a manifest and returns the added provider .
function addProvider(manifest, onDone) {
    if (SocialServiceInternal.providers[manifest.origin])
      throw new Error("SocialService.addProvider: provider with this origin already exists");
    let provider = new SocialProvider(manifest, SocialServiceInternal.enabled);
    SocialServiceInternal.providers[provider.origin] = provider;
    schedule(function () {
      onDone(provider);
    });
  }
function addProvider ( manifest , onDone ) { if ( SocialServiceInternal . providers [ manifest . origin ] ) throw new Error ( "SocialService.addProvider: provider with this origin already exists" ) ; let provider = new SocialProvider ( manifest , SocialServiceInternal . enabled ) ; SocialServiceInternal . providers [ provider . origin ] = provider ; schedule ( function ( ) { onDone ( provider ) ; } ) ; }
Adds a provider given a manifest, and returns the added provider.
Adds a provider given a manifest and returns the added provider .