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

Unified Diff: media/mojo/services/mojo_audio_decoder_service.cc

Issue 2330273002: media: Use associated interface for mojo AudioDecoderClient (Closed)
Patch Set: Created 4 years, 3 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_audio_decoder_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_audio_decoder_service.cc
diff --git a/media/mojo/services/mojo_audio_decoder_service.cc b/media/mojo/services/mojo_audio_decoder_service.cc
index 9b7a6f1bac008e4af8f16cb6832e28f5755b6dc9..aaa851726a7cb15aea3b8e2030f07b89daafb106 100644
--- a/media/mojo/services/mojo_audio_decoder_service.cc
+++ b/media/mojo/services/mojo_audio_decoder_service.cc
@@ -28,10 +28,11 @@ MojoAudioDecoderService::MojoAudioDecoderService(
MojoAudioDecoderService::~MojoAudioDecoderService() {}
-void MojoAudioDecoderService::Initialize(mojom::AudioDecoderClientPtr client,
- mojom::AudioDecoderConfigPtr config,
- int32_t cdm_id,
- const InitializeCallback& callback) {
+void MojoAudioDecoderService::Initialize(
+ mojom::AudioDecoderClientAssociatedPtrInfo client,
+ mojom::AudioDecoderConfigPtr config,
+ int32_t cdm_id,
+ const InitializeCallback& callback) {
DVLOG(1) << __FUNCTION__ << " "
<< config.To<media::AudioDecoderConfig>().AsHumanReadableString();
@@ -60,7 +61,7 @@ void MojoAudioDecoderService::Initialize(mojom::AudioDecoderClientPtr client,
}
}
- client_ = std::move(client);
+ client_.Bind(std::move(client));
decoder_->Initialize(
config.To<media::AudioDecoderConfig>(), cdm_context,
« no previous file with comments | « media/mojo/services/mojo_audio_decoder_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698