B2G/gecko/toolkit/mozapps/extensions/AddonManager.jsm
/**
   * Notifies all providers that an add-on has been enabled when that type of
   * add-on only supports a single add-on being enabled at a time. This allows
   * the providers to disable theirs if necessary.
   *
   * @param  aID
   *         The ID of the enabled add-on
   * @param  aType
   *         The type of the enabled add-on
   * @param  aPendingRestart
   *         A boolean indicating if the change will only take place the next
   *         time the application is restarted
   */
Notifies all providers that an add-on has been enabled when that type of
add-on only supports a single add-on being enabled at a time. This allows
the providers to disable theirs if necessary.

@param  aID
The ID of the enabled add-on
@param  aType
The type of the enabled add-on
@param  aPendingRestart
A boolean indicating if the change will only take place the next
time the application is restarted
Notifies all providers that an add - on has been enabled when that type of add - on only supports a single add - on being enabled at a time . This allows the providers to disable theirs if necessary . @param aID The ID of the enabled add - on @param aType The type of the enabled add - on @param aPendingRestart A boolean indicating if the change will only take place the next time the application is restarted
function AMI_notifyAddonChanged(aID, aType, aPendingRestart) {
    if (!gStarted)
      throw Components.Exception("AddonManager is not initialized",
                                 Cr.NS_ERROR_NOT_INITIALIZED);
    if (aID && typeof aID != "string")
      throw Components.Exception("aID must be a string or null",
                                 Cr.NS_ERROR_INVALID_ARG);
    if (!aType || typeof aType != "string")
      throw Components.Exception("aType must be a non-empty string",
                                 Cr.NS_ERROR_INVALID_ARG);
    this.callProviders("addonChanged", aID, aType, aPendingRestart);
  }
function AMI_notifyAddonChanged ( aID , aType , aPendingRestart ) { if ( ! gStarted ) throw Components . Exception ( "AddonManager is not initialized" , Cr . NS_ERROR_NOT_INITIALIZED ) ; if ( aID && typeof aID != "string" ) throw Components . Exception ( "aID must be a string or null" , Cr . NS_ERROR_INVALID_ARG ) ; if ( ! aType || typeof aType != "string" ) throw Components . Exception ( "aType must be a non-empty string" , Cr . NS_ERROR_INVALID_ARG ) ; this . callProviders ( "addonChanged" , aID , aType , aPendingRestart ) ; }
Notifies all providers that an add-on has been enabled when that type of
 add-on only supports a single add-on being enabled at a time.
Notifies all providers that an add - on has been enabled when that type of add - on only supports a single add - on being enabled at a time .