Remaining Fixes for #68720 - EmbedAPI should use generic startup observers

r=ccarlen,sr=alecf

Fix for #71994
MfcEMbed must implement Get/SetVisibility of nsIEmbeddingSiteWindow
r=chak


git-svn-id: svn://10.0.0.236/trunk@89812 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
chak%netscape.com
2001-03-19 21:57:57 +00:00
parent 3cb8c719f6
commit 1cb86d4edf
8 changed files with 29 additions and 11 deletions

View File

@@ -25,6 +25,7 @@
#include "nsIServiceManager.h"
#include "nsIEventQueueService.h"
#include "nsIChromeRegistry.h"
#include "nsIAppStartupNotifier.h"
#include "nsIStringBundle.h"
#include "nsIDirectoryService.h"
@@ -111,6 +112,11 @@ nsresult NS_InitEmbedding(nsILocalFile *mozBinDirectory,
sRegistryInitializedFlag = PR_TRUE;
}
nsCOMPtr<nsIObserver> 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