mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 06:52:25 +00:00
Bug 881565 - nsAppShell fails to compile with JB Gonk, r=mwu
This commit is contained in:
parent
1dfaee3a9a
commit
7bd7f0448a
@ -30,7 +30,9 @@
|
||||
|
||||
#include "base/basictypes.h"
|
||||
#include "nscore.h"
|
||||
#ifdef MOZ_OMX_DECODER
|
||||
#include "MediaResourceManagerService.h"
|
||||
#endif
|
||||
#include "mozilla/FileUtils.h"
|
||||
#include "mozilla/Hal.h"
|
||||
#include "mozilla/Mutex.h"
|
||||
@ -640,10 +642,11 @@ nsAppShell::Init()
|
||||
|
||||
InitGonkMemoryPressureMonitoring();
|
||||
|
||||
#ifdef MOZ_OMX_DECODER
|
||||
if (XRE_GetProcessType() == GeckoProcessType_Default) {
|
||||
android::MediaResourceManagerService::instantiate();
|
||||
}
|
||||
|
||||
#endif
|
||||
nsCOMPtr<nsIObserverService> obsServ = GetObserverService();
|
||||
if (obsServ) {
|
||||
obsServ->AddObserver(this, "browser-ui-startup-complete", false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user