rem: addDownloads: function (aParams) 
add: addDownloads: function (aParams, aManager) 
context:   addDownloads: function (aParams)  {    var numXPInstallItems = aParams.GetInt(1);    var items = [];    for (var i = 0; i < numXPInstallItems;) {      var displayName = aParams.GetString(i++);      var url = aParams.GetString(i++);      var iconURL = aParams.GetString(i++);      var uri = Components.classes["@mozilla.org/network/io-service;1"]                          .getService(nsIIOService).newURI(url, null, null);      var isTheme = uri.QueryInterface(nsIURL).fileExtension.toLowerCase() == "jar";      if (!iconURL) {        iconURL = isTheme ? "chrome://mozapps/skin/extensions/themeGeneric.png" :                            "chrome://mozapps/skin/xpinstall/xpinstallItemGeneric.png";      }      var type = isTheme ? nsIUpdateItem.TYPE_THEME : nsIUpdateItem.TYPE_EXTENSION;      var item = Components.classes["@mozilla.org/updates/item;1"]                           .createInstance(Components.interfaces.nsIUpdateItem);      item.init(url, " ", "app-profile", "", "", displayName, url, "", iconURL, "", "", type, "");      items.push(item);      // Advance the enumerator      var certName = aParams.GetString(i++);    }    gExtensionManager.addDownloads(items, items.length, false);    updateOptionalViews();    updateGlobalCommands();  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/dda8b3a65f2f56f7f0aed5a3b3adbf99a2ffb743/extensions.js/clean/toolkit/mozapps/extensions/content/extensions.js