update to new RegisterComponent APIs

This commit is contained in:
alecf%netscape.com 1999-02-27 02:25:02 +00:00
parent 56ed567656
commit dba169e3d7

View File

@ -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);
}