зеркало из https://github.com/mozilla/gecko-dev.git
Last Fix for #68720 - EmbedAPI should use generic startup observers
r=ccarlen,sr=alecf
This commit is contained in:
Родитель
a1b9575d23
Коммит
6af6ab8297
|
@ -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<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
|
||||
|
|
Загрузка…
Ссылка в новой задаче