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..eab6bc9d9b5d6cee48e2ce5d8bd7609badb88372 100644 |
--- a/content/child/child_thread_impl.cc |
+++ b/content/child/child_thread_impl.cc |
@@ -517,7 +517,9 @@ 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()); |
+ GetInterfaceRegistry()->AddInterface( |
+ base::Bind(&PowerMonitorBroadcastSource::BindRequest, |
+ base::Unretained(power_monitor_source.get()))); |
power_monitor_.reset( |
new base::PowerMonitor(std::move(power_monitor_source))); |