Chromium Code Reviews| Index: services/ui/gpu/gpu_main.cc |
| diff --git a/services/ui/gpu/gpu_main.cc b/services/ui/gpu/gpu_main.cc |
| index 5f4d90b41ccbaec789791aef3c4f109c9506d571..6143fe803eb0f7039dc7b84d74be6b5085992701 100644 |
| --- a/services/ui/gpu/gpu_main.cc |
| +++ b/services/ui/gpu/gpu_main.cc |
| @@ -51,8 +51,15 @@ GpuMain::GpuMain(mojom::GpuMainRequest request) |
| : gpu_thread_("GpuThread"), |
| io_thread_("GpuIOThread"), |
| compositor_thread_("DisplayCompositorThread"), |
| - power_monitor_(base::MakeUnique<base::PowerMonitorDeviceSource>()), |
| binding_(this) { |
| + // TODO: crbug.com/609317: Remove this when Mus Window Server and GPU are |
| + // split into separate processes. Until then this is necessary to be able to |
| + // run Mushrome (chrome --mus) with Mus running in the browser process. |
| + if (!base::PowerMonitor::Get()) { |
| + power_monitor_.reset(new base::PowerMonitor( |
|
sky
2017/06/27 19:58:56
MakeUnique for PowerMonitor too?
mfomitchev
2017/07/11 21:46:59
Done.
|
| + base::MakeUnique<base::PowerMonitorDeviceSource>())); |
| + } |
| + |
| base::Thread::Options thread_options; |
| #if defined(OS_WIN) |