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

Unified Diff: components/arc/arc_bridge_service_impl.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
Index: components/arc/arc_bridge_service_impl.cc
diff --git a/components/arc/arc_bridge_service_impl.cc b/components/arc/arc_bridge_service_impl.cc
index 4bc20c092578043132b34b189d00193cf70b8680..0760288b1400ad9010210da999a91c01831f4a12 100644
--- a/components/arc/arc_bridge_service_impl.cc
+++ b/components/arc/arc_bridge_service_impl.cc
@@ -101,9 +101,7 @@ void ArcBridgeServiceImpl::OnConnectionEstablished(
instance_ptr_.set_connection_error_handler(base::Bind(
&ArcBridgeServiceImpl::OnChannelClosed, weak_factory_.GetWeakPtr()));
- ArcBridgeHostPtr host;
- binding_.Bind(GetProxy(&host));
- instance_ptr_->Init(std::move(host));
+ instance_ptr_->Init(binding_.CreateInterfacePtrAndBind());
SetState(State::READY);
}
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc ('k') | components/arc/clipboard/arc_clipboard_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698