Bug 1870930 - Remove obsolete registerFactoryLocation calls from cZ. r=IanN
This commit is contained in:
Родитель
4a94866c5b
Коммит
2bc14ece28
|
@ -228,27 +228,18 @@ const ChatZillaModule =
|
|||
const catman = Cc[CATMAN_CONTRACTID].getService(Ci.nsICategoryManager);
|
||||
|
||||
debug("*** Registering -chat handler.\n");
|
||||
compMgr.registerFactoryLocation(CLINE_SERVICE_CID,
|
||||
"ChatZilla CommandLine Service",
|
||||
CLINE_SERVICE_CONTRACTID,
|
||||
fileSpec, location, type);
|
||||
catman.addCategoryEntry("command-line-argument-handlers",
|
||||
"chatzilla command line handler",
|
||||
CLINE_SERVICE_CONTRACTID, true, true);
|
||||
catman.addCategoryEntry("command-line-handler",
|
||||
"m-irc",
|
||||
CLINE_SERVICE_CONTRACTID, true, true);
|
||||
|
||||
debug("*** Registering irc protocol handler.\n");
|
||||
ChatZillaProtocols.initObsolete(compMgr, fileSpec, location, type);
|
||||
|
||||
debug("*** Registering done.\n");
|
||||
},
|
||||
|
||||
unregisterSelf(compMgr, fileSpec, location)
|
||||
{
|
||||
compMgr = compMgr.QueryInterface(Ci.nsIComponentRegistrar);
|
||||
|
||||
const catman = Cc[CATMAN_CONTRACTID].getService(Ci.nsICategoryManager);
|
||||
catman.deleteCategoryEntry("command-line-argument-handlers",
|
||||
"chatzilla command line handler", true);
|
||||
|
|
|
@ -225,17 +225,4 @@ this.ChatZillaProtocols =
|
|||
IRCSPROT_HANDLER_CONTRACTID,
|
||||
IRCSProtocolHandlerFactory);
|
||||
},
|
||||
|
||||
initObsolete(compMgr, fileSpec, location, type)
|
||||
{
|
||||
compMgr = compMgr.QueryInterface(Ci.nsIComponentRegistrar);
|
||||
compMgr.registerFactoryLocation(IRCPROT_HANDLER_CID,
|
||||
"IRC protocol handler",
|
||||
IRCPROT_HANDLER_CONTRACTID,
|
||||
fileSpec, location, type);
|
||||
compMgr.registerFactoryLocation(IRCSPROT_HANDLER_CID,
|
||||
"IRCS protocol handler",
|
||||
IRCSPROT_HANDLER_CONTRACTID,
|
||||
fileSpec, location, type);
|
||||
},
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче