From 6af6ab8297d51b3bcb8ef6fe1d4719356571d02e Mon Sep 17 00:00:00 2001 From: "chak%netscape.com" Date: Tue, 13 Mar 2001 06:35:48 +0000 Subject: [PATCH] Last Fix for #68720 - EmbedAPI should use generic startup observers r=ccarlen,sr=alecf --- embedding/base/nsEmbedAPI.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/embedding/base/nsEmbedAPI.cpp b/embedding/base/nsEmbedAPI.cpp index a93ec5d6681a..d63ca86a2ea3 100644 --- a/embedding/base/nsEmbedAPI.cpp +++ b/embedding/base/nsEmbedAPI.cpp @@ -25,7 +25,7 @@ #include "nsIServiceManager.h" #include "nsIEventQueueService.h" #include "nsIChromeRegistry.h" - +#include "nsIAppStartupNotifier.h" #include "nsIStringBundle.h" #include "nsIDirectoryService.h" @@ -112,6 +112,11 @@ nsresult NS_InitEmbedding(nsILocalFile *mozBinDirectory, sRegistryInitializedFlag = PR_TRUE; } + nsCOMPtr mStartupNotifier = do_CreateInstance(NS_APPSTARTUPNOTIFIER_CONTRACTID, &rv); + if(NS_FAILED(rv)) + return rv; + mStartupNotifier->Observe(nsnull, APPSTARTUP_TOPIC, nsnull); + // Create the Event Queue for the UI thread... // // If an event queue already exists for the thread, then