Bug 408561 - "SessionStore shouldn't observe "app-startup"" [p=zeniko@gmail.com (Simon Bünzli) r=gavin a1.9=mconnor]

This commit is contained in:
reed@reedloden.com 2007-12-17 21:32:12 -08:00
parent cb79345994
commit 7596f1868d

View File

@ -2096,19 +2096,11 @@ const SessionStoreModule = {
registerSelf: function(aCompMgr, aFileSpec, aLocation, aType) {
aCompMgr.QueryInterface(Ci.nsIComponentRegistrar);
aCompMgr.registerFactoryLocation(CID, CLASS_NAME, CONTRACT_ID, aFileSpec, aLocation, aType);
var catMan = Cc["@mozilla.org/categorymanager;1"].
getService(Ci.nsICategoryManager);
catMan.addCategoryEntry("app-startup", CLASS_NAME, "service," + CONTRACT_ID, true, true);
},
unregisterSelf: function(aCompMgr, aLocation, aType) {
aCompMgr.QueryInterface(Ci.nsIComponentRegistrar);
aCompMgr.unregisterFactoryLocation(CID, aLocation);
var catMan = Cc["@mozilla.org/categorymanager;1"].
getService(Ci.nsICategoryManager);
catMan.deleteCategoryEntry( "app-startup", "service," + CONTRACT_ID, true);
},
canUnload: function(aCompMgr) {
@ -2132,8 +2124,7 @@ const SessionStoreFactory = {
lockFactory: function(aLock) { },
QueryInterface: function(aIID) {
if (!aIID.equals(Ci.nsISupports) && !aIID.equals(Ci.nsIModule) &&
!aIID.equals(Ci.nsIFactory) && !aIID.equals(Ci.nsISessionStore)) {
if (!aIID.equals(Ci.nsISupports) && !aIID.equals(Ci.nsIFactory)) {
Components.returnCode = Cr.NS_ERROR_NO_INTERFACE;
return null;
}