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

Unified Diff: components/arc/power/arc_power_bridge.cc

Issue 1635603002: Make use of CreateInterfacePtrAndBind() where appropriate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 years, 11 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 | « components/arc/ime/arc_ime_ipc_host_impl.cc ('k') | components/arc/video/arc_video_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/power/arc_power_bridge.cc
diff --git a/components/arc/power/arc_power_bridge.cc b/components/arc/power/arc_power_bridge.cc
index 05b438b16e950f686cfcb63aa9d699bcfb2dbdfc..5299d3f264c24bccbe3ee58f7e644c3a5041164a 100644
--- a/components/arc/power/arc_power_bridge.cc
+++ b/components/arc/power/arc_power_bridge.cc
@@ -35,9 +35,7 @@ void ArcPowerBridge::OnPowerInstanceReady() {
return;
}
- PowerHostPtr host;
- binding_.Bind(mojo::GetProxy(&host));
- power_instance->Init(std::move(host));
+ power_instance->Init(binding_.CreateInterfacePtrAndBind());
}
void ArcPowerBridge::OnAcquireDisplayWakeLock(
« no previous file with comments | « components/arc/ime/arc_ime_ipc_host_impl.cc ('k') | components/arc/video/arc_video_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698