B2G/gecko/toolkit/mozapps/extensions/AddonManager.jsm
/**
   * Notifies all providers that the repository has updated its data for
   * installed add-ons.
   *
   * @param  aCallback
   *         Function to call when operation is complete.
   */
Notifies all providers that the repository has updated its data for
installed add-ons.

@param  aCallback
Function to call when operation is complete.
Notifies all providers that the repository has updated its data for installed add - ons . @param aCallback Function to call when operation is complete .
function AMI_updateAddonRepositoryData(aCallback) {
    if (!gStarted)
      throw Components.Exception("AddonManager is not initialized",
                                 Cr.NS_ERROR_NOT_INITIALIZED);
    if (typeof aCallback != "function")
      throw Components.Exception("aCallback must be a function",
                                 Cr.NS_ERROR_INVALID_ARG);
    new AsyncObjectCaller(this.providers, "updateAddonRepositoryData", {
      nextObject: function(aCaller, aProvider) {
        callProvider(aProvider,
                     "updateAddonRepositoryData",
                     null,
                     aCaller.callNext.bind(aCaller));
      },
      noMoreObjects: function(aCaller) {
        safeCall(aCallback);
      }
    });
  }
function AMI_updateAddonRepositoryData ( aCallback ) { if ( ! gStarted ) throw Components . Exception ( "AddonManager is not initialized" , Cr . NS_ERROR_NOT_INITIALIZED ) ; if ( typeof aCallback != "function" ) throw Components . Exception ( "aCallback must be a function" , Cr . NS_ERROR_INVALID_ARG ) ; new AsyncObjectCaller ( this . providers , "updateAddonRepositoryData" , { nextObject : function ( aCaller , aProvider ) { callProvider ( aProvider , "updateAddonRepositoryData" , null , aCaller . callNext . bind ( aCaller ) ) ; } , noMoreObjects : function ( aCaller ) { safeCall ( aCallback ) ; } } ) ; }
Notifies all providers that the repository has updated its data for
 installed add-ons.
Notifies all providers that the repository has updated its data for installed add - ons .