Removed chrome registry code from embedding API to improve startup performance. r=ccarlen@netscape.com sr=hyatt@netscape.com r=105462

git-svn-id: svn://10.0.0.236/trunk@105766 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
locka%iol.ie 2001-10-19 12:43:05 +00:00
parent e67a7d706e
commit 9320e8b6d1

View File

@ -24,7 +24,6 @@
#include "nsIServiceManager.h"
#include "nsIEventQueueService.h"
#include "nsIChromeRegistry.h"
#include "nsIAppStartupNotifier.h"
#include "nsIStringBundle.h"
@ -141,15 +140,6 @@ nsresult NS_InitEmbedding(nsILocalFile *mozBinDirectory,
}
#endif
// Init the chrome registry.
nsCOMPtr<nsIChromeRegistry> chromeReg;
chromeReg = do_GetService("@mozilla.org/chrome/chrome-registry;1", &rv);
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;
}