Bug 881565 - nsAppShell fails to compile with JB Gonk, r=mwu

This commit is contained in:
Sotaro Ikeda 2013-06-11 16:47:44 -04:00
parent 99b17b86b1
commit 5f4621e3f4

View File

@ -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);