mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
update to new RegisterComponent APIs
This commit is contained in:
parent
56ed567656
commit
dba169e3d7
@ -163,8 +163,11 @@ NSRegisterSelf(nsISupports* serviceMgr, const char *fullpath)
|
||||
#ifdef DEBUG
|
||||
printf("messenger: NSRegisterSelf()\n");
|
||||
#endif
|
||||
return nsRepository::RegisterFactory(kCMsgAppCoreCID, fullpath,
|
||||
PR_TRUE, PR_TRUE);
|
||||
return nsRepository::RegisterComponent(kCMsgAppCoreCID,
|
||||
"Messenger AppCore",
|
||||
"component://netscape/appcores/messenger",
|
||||
fullpath,
|
||||
PR_TRUE, PR_TRUE);
|
||||
}
|
||||
|
||||
nsresult
|
||||
@ -173,5 +176,5 @@ NSUnregisterSelf(nsISupports* serviceMgr, const char *fullpath)
|
||||
#ifdef DEBUG
|
||||
printf("messenger: NSUnregisterSelf()\n");
|
||||
#endif
|
||||
return nsRepository::UnregisterFactory(kCMsgAppCoreCID, fullpath);
|
||||
return nsRepository::UnregisterComponent(kCMsgAppCoreCID, fullpath);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user