B2G/gecko/toolkit/mozapps/extensions/XPIProvider.jsm
/**
   * Obtain an Addon having the specified Sync GUID.
   *
   * @param  aGUID
   *         String GUID of add-on to retrieve
   * @param  aCallback
   *         A callback to pass the Addon to. Receives null if not found.
   */
Obtain an Addon having the specified Sync GUID.
@param  aGUID
String GUID of add-on to retrieve
@param  aCallback
A callback to pass the Addon to. Receives null if not found.
Obtain an Addon having the specified Sync GUID . @param aGUID String GUID of add - on to retrieve @param aCallback A callback to pass the Addon to . Receives null if not found .
function XPI_getAddonBySyncGUID(aGUID, aCallback) {
    XPIDatabase.getAddonBySyncGUID(aGUID, function getAddonBySyncGUID_getAddonBySyncGUID(aAddon) {
      if (aAddon)
        aCallback(createWrapper(aAddon));
      else
        aCallback(null);
    });
  }
function XPI_getAddonBySyncGUID ( aGUID , aCallback ) { XPIDatabase . getAddonBySyncGUID ( aGUID , function getAddonBySyncGUID_getAddonBySyncGUID ( aAddon ) { if ( aAddon ) aCallback ( createWrapper ( aAddon ) ) ; else aCallback ( null ) ; } ) ; }
Obtain an Addon having the specified Sync GUID.
Obtain an Addon having the specified Sync GUID .