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

Unified Diff: content/child/child_thread_impl.cc

Issue 2447613004: 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
« no previous file with comments | « content/child/DEPS ('k') | content/child/power_monitor_broadcast_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)));
« no previous file with comments | « content/child/DEPS ('k') | content/child/power_monitor_broadcast_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698