| 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 1d614c5792012d6c2f3ad2d05ba451769ab42dfd..86fa303e7692bd66edece9760aaa83b2b6810d41 100644
|
| --- a/media/mojo/services/mojo_cdm_service.cc
|
| +++ b/media/mojo/services/mojo_cdm_service.cc
|
| @@ -138,7 +138,7 @@ CdmContext* MojoCdmService::GetCdmContext() {
|
|
|
| void MojoCdmService::OnCdmCreated(int cdm_id,
|
| scoped_ptr<SimpleMojoCdmPromise> 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
|
| @@ -147,7 +147,7 @@ void MojoCdmService::OnCdmCreated(int cdm_id,
|
| return;
|
| }
|
|
|
| - cdm_ = cdm.Pass();
|
| + cdm_ = cdm;
|
| cdm_id_ = cdm_id;
|
| context_->RegisterCdm(cdm_id_, this);
|
| promise->resolve();
|
|
|