| Index: services/ui/gpu/gpu_main.cc
|
| diff --git a/services/ui/gpu/gpu_main.cc b/services/ui/gpu/gpu_main.cc
|
| index cb42d4df66818aea86a32f6e182583d6f697552e..76eb09432a68698bdc246241ee90222f866e11ca 100644
|
| --- a/services/ui/gpu/gpu_main.cc
|
| +++ b/services/ui/gpu/gpu_main.cc
|
| @@ -52,8 +52,12 @@ GpuMain::GpuMain(mojom::GpuMainRequest request)
|
| : gpu_thread_("GpuThread"),
|
| io_thread_("GpuIOThread"),
|
| compositor_thread_("DisplayCompositorThread"),
|
| - power_monitor_(base::MakeUnique<base::PowerMonitorDeviceSource>()),
|
| binding_(this) {
|
| + // TODO: OK?
|
| + if (!base::PowerMonitor::Get())
|
| + power_monitor_.reset(new base::PowerMonitor(
|
| + base::MakeUnique<base::PowerMonitorDeviceSource>()));
|
| +
|
| base::Thread::Options thread_options;
|
|
|
| #if defined(OS_WIN)
|
|
|