Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1541)

Unified Diff: content/child/child_thread_impl.cc

Issue 2433203003: Mojoify PoweMonitorMessageBroadcaster IPC from browser to child process (Closed)
Patch Set: Mojoify PoweMonitorMessageBroadcaster IPC from browser to child process Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)));

Powered by Google App Engine
This is Rietveld 408576698