B2G/gecko/toolkit/mozapps/extensions/XPIProvider.jsm
/**
   * Gets the ID of the add-on installed in the given nsIFile.
   *
   * @param  aFile
   *         The nsIFile to look in
   * @return the ID
   * @throws if the file does not represent an installed add-on
   */
Gets the ID of the add-on installed in the given nsIFile.
@param  aFile
The nsIFile to look in
@return the ID
@throws if the file does not represent an installed add-on
Gets the ID of the add - on installed in the given nsIFile . @param aFile The nsIFile to look in @return the ID @throws if the file does not represent an installed add - on
function RegInstallLocation_getIDForLocation(aFile) {
    if (aFile.path in this._FileToIDMap)
      return this._FileToIDMap[aFile.path];
    throw new Error("Unknown add-on location");
  }
function RegInstallLocation_getIDForLocation ( aFile ) { if ( aFile . path in this . _FileToIDMap ) return this . _FileToIDMap [ aFile . path ] ; throw new Error ( "Unknown add-on location" ) ; }
Gets the ID of the add-on installed in the given nsIFile.
Gets the ID of the add - on installed in the given nsIFile .