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) { |