B2G/gecko/toolkit/mozapps/extensions/XPIProvider.jsm
/**
   * Read the registry and build a mapping between ID and path for each
   * installed add-on.
   *
   * @param  key
   *         The key that contains the ID to path mapping
   */
Read the registry and build a mapping between ID and path for each
installed add-on.

@param  key
The key that contains the ID to path mapping
Read the registry and build a mapping between ID and path for each installed add - on . @param key The key that contains the ID to path mapping
function RegInstallLocation__readAddons(aKey) {
    let count = aKey.valueCount;
    for (let i = 0; i < count; ++i) {
      let id = aKey.getValueName(i);
      let file = Cc["@mozilla.org/file/local;1"].
                createInstance(Ci.nsIFile);
      file.initWithPath(aKey.readStringValue(id));
      if (!file.exists()) {
        WARN("Ignoring missing add-on in " + file.path);
        continue;
      }
      this._IDToFileMap[id] = file;
      this._FileToIDMap[file.path] = id;
    }
  }
function RegInstallLocation__readAddons ( aKey ) { let count = aKey . valueCount ; for ( let i = 0 ; i < count ; ++ i ) { let id = aKey . getValueName ( i ) ; let file = Cc [ "@mozilla.org/file/local;1" ] . createInstance ( Ci . nsIFile ) ; file . initWithPath ( aKey . readStringValue ( id ) ) ; if ( ! file . exists ( ) ) { WARN ( "Ignoring missing add-on in " + file . path ) ; continue ; } this . _IDToFileMap [ id ] = file ; this . _FileToIDMap [ file . path ] = id ; } }
Read the registry and build a mapping between ID and path for each
 installed add-on.
Read the registry and build a mapping between ID and path for each installed add - on .