| Index: media/mojo/services/mojo_cdm_service.cc
|
| diff --git a/media/mojo/services/mojo_cdm_service.cc b/media/mojo/services/mojo_cdm_service.cc
|
| index 76569fa1c06a397a23413ed738a9b40e2f1f0081..6234e80cb26e1d3e18d6cef80a45c9750b9495f7 100644
|
| --- a/media/mojo/services/mojo_cdm_service.cc
|
| +++ b/media/mojo/services/mojo_cdm_service.cc
|
| @@ -203,10 +203,8 @@ void MojoCdmService::OnCdmCreated(
|
| mojom::DecryptorPtr decryptor_service;
|
| CdmContext* const cdm_context = cdm_->GetCdmContext();
|
| if (cdm_context && cdm_context->GetDecryptor()) {
|
| - // MojoDecryptorService takes a reference to the CDM, but it is still owned
|
| - // by |this|.
|
| decryptor_.reset(new MojoDecryptorService(
|
| - cdm_, MakeRequest(&decryptor_service),
|
| + cdm_context->GetDecryptor(), MakeRequest(&decryptor_service),
|
| base::Bind(&MojoCdmService::OnDecryptorConnectionError, weak_this_)));
|
| }
|
|
|
|
|