Index: content/child/child_thread_impl.cc |
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc |
index e166b19fa9c482f7dcd271540b6e71976f831819..df7a16dce4a0d04d5c3526f2e25014adcf006e28 100644 |
--- a/content/child/child_thread_impl.cc |
+++ b/content/child/child_thread_impl.cc |
@@ -517,7 +517,10 @@ void ChildThreadImpl::Init(const Options& options) { |
if (!base::PowerMonitor::Get()) { |
std::unique_ptr<PowerMonitorBroadcastSource> power_monitor_source( |
new PowerMonitorBroadcastSource()); |
- channel_->AddFilter(power_monitor_source->GetMessageFilter()); |
+ device::mojom::PowerMonitorPtr power_monitor_register; |
+ GetRemoteInterfaces()->GetInterface( |
+ mojo::GetProxy(&power_monitor_register)); |
+ power_monitor_source->AddClient(std::move(power_monitor_register)); |
power_monitor_.reset( |
new base::PowerMonitor(std::move(power_monitor_source))); |