Index: media/mojo/clients/mojo_renderer.cc |
diff --git a/media/mojo/clients/mojo_renderer.cc b/media/mojo/clients/mojo_renderer.cc |
index 3f0a7c6913474f553f1fdc32ecdab327e147f8c1..7d009d6f0b45ba3321c506d15cbdee5610a985e3 100644 |
--- a/media/mojo/clients/mojo_renderer.cc |
+++ b/media/mojo/clients/mojo_renderer.cc |
@@ -112,7 +112,7 @@ void MojoRenderer::InitializeRendererFromStreams( |
// |remote_renderer_| is destroyed. |
remote_renderer_->Initialize( |
std::move(client_ptr_info), std::move(audio_stream), |
- std::move(video_stream), base::nullopt, |
+ std::move(video_stream), base::nullopt, base::nullopt, |
base::Bind(&MojoRenderer::OnInitialized, base::Unretained(this), client)); |
} |
@@ -125,12 +125,15 @@ void MojoRenderer::InitializeRendererFromUrl(media::RendererClient* client) { |
mojom::RendererClientAssociatedPtrInfo client_ptr_info; |
client_binding_.Bind(&client_ptr_info, remote_renderer_.associated_group()); |
+ MediaUrlParams url_params = demuxer_stream_provider_->GetMediaUrlParams(); |
+ |
// Using base::Unretained(this) is safe because |this| owns |
// |remote_renderer_|, and the callback won't be dispatched if |
// |remote_renderer_| is destroyed. |
remote_renderer_->Initialize( |
std::move(client_ptr_info), mojom::DemuxerStreamPtr(), |
- mojom::DemuxerStreamPtr(), demuxer_stream_provider_->GetUrl(), |
+ mojom::DemuxerStreamPtr(), url_params.media_url, |
+ url_params.first_party_for_cookies, |
base::Bind(&MojoRenderer::OnInitialized, base::Unretained(this), client)); |
} |