Bug 772050 - Remove 'classInfo' from AppsService and SettingsService. r=gwagner

This commit is contained in:
Mounir Lamouri 2012-07-18 07:58:02 -07:00
parent 8d89988f31
commit a2e303064e
2 changed files with 1 additions and 16 deletions

View File

@ -14,7 +14,6 @@ const Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Webapps.jsm");
const APPS_SERVICE_CONTRACTID = "@mozilla.org/AppsService;1";
const APPS_SERVICE_CID = Components.ID("{05072afa-92fe-45bf-ae22-39b69c117058}");
function AppsService()
@ -35,12 +34,6 @@ AppsService.prototype = {
classID : APPS_SERVICE_CID,
QueryInterface : XPCOMUtils.generateQI([Ci.nsIAppsService]),
classInfo : XPCOMUtils.generateCI({classID: APPS_SERVICE_CID,
contractID: APPS_SERVICE_CONTRACTID,
classDescription: "AppsService",
interfaces: [Ci.nsIAppsService],
flags: Ci.nsIClassInfo.DOM_OBJECT})
}
const NSGetFactory = XPCOMUtils.generateNSGetFactory([AppsService])

View File

@ -133,9 +133,7 @@ SettingsServiceLock.prototype = {
flags: nsIClassInfo.DOM_OBJECT})
};
const SETTINGSSERVICE_CONTRACTID = "@mozilla.org/settingsService;1";
const SETTINGSSERVICE_CID = Components.ID("{3458e760-8513-11e1-b0c4-0800200c9a66}");
const nsISettingsService = Ci.nsISettingsService;
let myGlobal = this;
@ -171,13 +169,7 @@ SettingsService.prototype = {
},
classID : SETTINGSSERVICE_CID,
QueryInterface : XPCOMUtils.generateQI([nsISettingsService]),
classInfo : XPCOMUtils.generateCI({classID: SETTINGSSERVICE_CID,
contractID: SETTINGSSERVICE_CONTRACTID,
classDescription: "SettingsService",
interfaces: [nsISettingsService],
flags: nsIClassInfo.DOM_OBJECT})
QueryInterface : XPCOMUtils.generateQI([Ci.nsISettingsService]),
}
const NSGetFactory = XPCOMUtils.generateNSGetFactory([SettingsService, SettingsServiceLock])