| Index: content/browser/renderer_host/render_process_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
|
| index 3134c318ddadcc54c772416ec322102012104721..907ace706838df7d4f43bac2fc0337e4b6b56c47 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_process_host_impl.cc
|
| @@ -161,6 +161,7 @@
|
| #include "content/public/common/service_names.h"
|
| #include "content/public/common/url_constants.h"
|
| #include "device/battery/battery_monitor_impl.h"
|
| +#include "device/power_monitor/public/interfaces/power_monitor.mojom.h"
|
| #include "device/time_zone_monitor/time_zone_monitor.h"
|
| #include "gpu/GLES2/gl2extchromium.h"
|
| #include "gpu/command_buffer/client/gpu_switches.h"
|
| @@ -684,7 +685,6 @@ RenderProcessHostImpl::RenderProcessHostImpl(
|
| gpu_observer_registered_(false),
|
| delayed_cleanup_needed_(false),
|
| within_process_died_observer_(false),
|
| - power_monitor_broadcaster_(this),
|
| #if defined(ENABLE_WEBRTC)
|
| webrtc_eventlog_host_(id_),
|
| #endif
|
| @@ -921,7 +921,9 @@ bool RenderProcessHostImpl::Init() {
|
| ui::GpuSwitchingManager::GetInstance()->AddObserver(this);
|
| }
|
|
|
| - power_monitor_broadcaster_.Init();
|
| + device::mojom::PowerMonitorClientPtr power_monitor_client;
|
| + GetRemoteInterfaces()->GetInterface(mojo::GetProxy(&power_monitor_client));
|
| + power_monitor_broadcaster_.Init(power_monitor_client);
|
|
|
| is_initialized_ = true;
|
| init_time_ = base::TimeTicks::Now();
|
|
|