Bug 1559675 - P2. Initialise xpcom earlier in GPU process. r=mattwoodrow

StaticPrefs are fully initialized with Preferences, which is instantiated via XPCOM. It is required as such to initialize xpcom first.

Depends on D35263

Differential Revision: https://phabricator.services.mozilla.com/D35264

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jean-Yves Avenard 2019-06-18 23:03:20 +00:00
Родитель 01ac9fc00f
Коммит 139dde3db5
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -107,6 +107,10 @@ bool GPUParent::Init(base::ProcessId aParentPid, const char* aParentBuildID,
ProcessChild::QuickExit();
}
if (NS_FAILED(NS_InitMinimalXPCOM())) {
return false;
}
// Init crash reporter support.
CrashReporterClient::InitSingleton(this);
@ -120,10 +124,6 @@ bool GPUParent::Init(base::ProcessId aParentPid, const char* aParentBuildID,
DeviceManagerDx::Init();
#endif
if (NS_FAILED(NS_InitMinimalXPCOM())) {
return false;
}
CompositorThreadHolder::Start();
APZThreadUtils::SetControllerThread(MessageLoop::current());
apz::InitializeGlobalState();