Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index 8c90372bed2931a50d01a8404fec70de81c6e0ff..91d86e1b02eb1fb00914fa834d073e2cb9a0d629 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -191,6 +191,11 @@ |
#include "gpu/vulkan/vulkan_implementation.h" |
#endif |
+#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) |
+#include "components/mus/common/gpu_service.h" // nogncheck |
+#endif |
+ |
+ |
// One of the linux specific headers defines this as a macro. |
#ifdef DestroyAll |
#undef DestroyAll |
@@ -1171,8 +1176,11 @@ int BrowserMainLoop::BrowserThreadsStarted() { |
#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) |
// TODO(rockot): Remove the blocking wait for init. |
// http://crbug.com/594852. |
- if (MojoShellConnection::GetForProcess()) |
+ auto connection = MojoShellConnection::GetForProcess(); |
+ if (connection) { |
WaitForMojoShellInitialize(); |
+ mus::GpuService::Initialize(connection->GetConnector()); |
+ } |
#endif |
} |