This commit is contained in:
dougt%netscape.com 2000-10-01 05:26:26 +00:00
Родитель bfbbaa82b6
Коммит 65e7f506e2
1 изменённых файлов: 6 добавлений и 9 удалений

Просмотреть файл

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