Removes need for chrome r/a=blizzard@redhat.com b=54428

This commit is contained in:
dougt@netscape.com
2000-10-01 05:26:26 +00:00
parent e5ab5fe22c
commit 3e2d02f95b

View File

@@ -164,15 +164,12 @@ nsresult NS_InitEmbedding(nsILocalFile *mozBinDirectory,
rv = sServiceManager->GetService("@mozilla.org/chrome/chrome-registry;1",
nsIChromeRegistry::GetIID(),
getter_AddRefs(chromeReg));
NS_ASSERTION(chromeReg, "chrome check couldn't get the chrome registry");
if (!chromeReg)
return NS_ERROR_FAILURE;
// Ignore the return value here. If chrome is already initialized
// this call will return an error even though nothing is wrong.
chromeReg->CheckForNewChrome();
if (chromeReg)
{
// Ignore the return value here. If chrome is already initialized
// this call will return an error even though nothing is wrong.
(void) chromeReg->CheckForNewChrome();
}
return NS_OK;
}