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

Unified Diff: content/child/navigator_connect/service_port_provider.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: content/child/navigator_connect/service_port_provider.cc
diff --git a/content/child/navigator_connect/service_port_provider.cc b/content/child/navigator_connect/service_port_provider.cc
index 5082665ed529759f715ccd55b95b9cb54140b834..d8f9532faf1df72d80e499bca53017278e7d394c 100644
--- a/content/child/navigator_connect/service_port_provider.cc
+++ b/content/child/navigator_connect/service_port_provider.cc
@@ -124,9 +124,7 @@ ServicePortServicePtr& ServicePortProvider::GetServicePortServicePtr() {
base::Passed(&request)));
// Setup channel for browser to post events back to this class.
- ServicePortServiceClientPtr client_ptr;
- binding_.Bind(GetProxy(&client_ptr));
- service_port_service_->SetClient(std::move(client_ptr));
+ service_port_service_->SetClient(binding_.CreateInterfacePtrAndBind());
}
return service_port_service_;
}
« no previous file with comments | « components/web_view/public/cpp/web_view.cc ('k') | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698