| 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 c30a4f7d8125e811567ffd659a47a9151b9beab0..4a163872305d5572e6c6abd2a1fb8716976c321f 100644
|
| --- a/media/mojo/services/mojo_cdm_service.cc
|
| +++ b/media/mojo/services/mojo_cdm_service.cc
|
| @@ -140,7 +140,7 @@ CdmContext* MojoCdmService::GetCdmContext() {
|
| }
|
|
|
| void MojoCdmService::OnCdmCreated(scoped_ptr<CdmIdMojoCdmPromise> promise,
|
| - scoped_ptr<MediaKeys> cdm,
|
| + const scoped_refptr<MediaKeys>& cdm,
|
| const std::string& error_message) {
|
| // TODO(xhwang): This should not happen when KeySystemInfo is properly
|
| // populated. See http://crbug.com/469366
|
| @@ -149,7 +149,7 @@ void MojoCdmService::OnCdmCreated(scoped_ptr<CdmIdMojoCdmPromise> promise,
|
| return;
|
| }
|
|
|
| - cdm_ = cdm.Pass();
|
| + cdm_ = cdm;
|
| cdm_id_ = next_cdm_id_++;
|
| context_->RegisterCdm(cdm_id_, this);
|
| promise->resolve(cdm_id_);
|
|
|