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

Unified Diff: media/mojo/services/mojo_renderer_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
« no previous file with comments | « media/mojo/services/mojo_cdm.cc ('k') | mojo/services/network/network_service_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_renderer_impl.cc
diff --git a/media/mojo/services/mojo_renderer_impl.cc b/media/mojo/services/mojo_renderer_impl.cc
index 76f3e8158a85d409515c1441a7336eb6b8d38ef2..f3698e6ad3888fef98a5cf294e72dfb8bdbff4fc 100644
--- a/media/mojo/services/mojo_renderer_impl.cc
+++ b/media/mojo/services/mojo_renderer_impl.cc
@@ -68,10 +68,9 @@ void MojoRendererImpl::Initialize(
if (video)
new MojoDemuxerStreamImpl(video, GetProxy(&video_stream));
- interfaces::RendererClientPtr client_ptr;
- binding_.Bind(GetProxy(&client_ptr));
remote_renderer_->Initialize(
- std::move(client_ptr), std::move(audio_stream), std::move(video_stream),
+ binding_.CreateInterfacePtrAndBind(), std::move(audio_stream),
+ std::move(video_stream),
BindToCurrentLoop(base::Bind(&MojoRendererImpl::OnInitialized,
weak_factory_.GetWeakPtr())));
}
« no previous file with comments | « media/mojo/services/mojo_cdm.cc ('k') | mojo/services/network/network_service_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698