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

Unified Diff: content/renderer/presentation/presentation_dispatcher.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/renderer/presentation/presentation_dispatcher.cc
diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
index bf5a4a64bbcde782b96d873892b2ce1b36154b6a..367f6943175bb33d3fb8a91130dcd7ba6341c5a8 100644
--- a/content/renderer/presentation/presentation_dispatcher.cc
+++ b/content/renderer/presentation/presentation_dispatcher.cc
@@ -421,9 +421,7 @@ void PresentationDispatcher::ConnectToPresentationServiceIfNeeded() {
render_frame()->GetServiceRegistry()->ConnectToRemoteService(
mojo::GetProxy(&presentation_service_));
- presentation::PresentationServiceClientPtr client_ptr;
- binding_.Bind(GetProxy(&client_ptr));
- presentation_service_->SetClient(std::move(client_ptr));
+ presentation_service_->SetClient(binding_.CreateInterfacePtrAndBind());
}
void PresentationDispatcher::UpdateListeningState(AvailabilityStatus* status) {

Powered by Google App Engine
This is Rietveld 408576698