Bug 1705007: Ensure GPU process has created the observer service. r=gfx-reviewers,aosmond

Differential Revision: https://phabricator.services.mozilla.com/D113193
This commit is contained in:
Brad Werth 2021-04-26 19:35:44 +00:00
Родитель 17c57fe0c9
Коммит 784a86e1ca
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -28,6 +28,7 @@
#include "mozilla/HangDetails.h"
#include "mozilla/PerfStats.h"
#include "mozilla/Preferences.h"
#include "mozilla/ProcessPriorityManager.h"
#include "mozilla/RemoteDecoderManagerChild.h"
#include "mozilla/RemoteDecoderManagerParent.h"
#include "mozilla/ScopeExit.h"
@ -167,6 +168,9 @@ bool GPUParent::Init(base::ProcessId aParentPid, const char* aParentBuildID,
return false;
}
// Ensure the observer service exists.
ProcessPriorityManager::Init();
// Init crash reporter support.
CrashReporterClient::InitSingleton(this);