Chromium Code Reviews| Index: media/mojo/services/mojo_cdm.cc |
| diff --git a/media/mojo/services/mojo_cdm.cc b/media/mojo/services/mojo_cdm.cc |
| index 43dbf2d7a14daba3ba7f34877fb8908d5667183e..d228f7347d1b71eb0efb335a4313d9710e55b8e6 100644 |
| --- a/media/mojo/services/mojo_cdm.cc |
| +++ b/media/mojo/services/mojo_cdm.cc |
| @@ -39,6 +39,7 @@ MojoCdm::MojoCdm(mojo::ContentDecryptionModulePtr remote_cdm, |
| const SessionKeysChangeCB& session_keys_change_cb, |
| const SessionExpirationUpdateCB& session_expiration_update_cb) |
| : remote_cdm_(remote_cdm.Pass()), |
| + binding_(this), |
| session_message_cb_(session_message_cb), |
| session_closed_cb_(session_closed_cb), |
| session_error_cb_(session_error_cb), |
| @@ -52,9 +53,9 @@ MojoCdm::MojoCdm(mojo::ContentDecryptionModulePtr remote_cdm, |
| DCHECK(!session_keys_change_cb_.is_null()); |
| DCHECK(!session_expiration_update_cb_.is_null()); |
| - // TODO(xhwang): Client syntax has been removed, so a new mechanism for client |
| - // discovery must be added to this interface. See http://crbug.com/451321. |
| - NOTREACHED(); |
| + mojo::ContentDecryptionModuleClientPtr client_ptr; |
| + binding_.Bind(GetProxy(&client_ptr)); |
| + remote_cdm_->SetClient(client_ptr.Pass()); |
|
xhwang
2015/03/17 23:30:37
We don't need to wait for a confirmation callaback
|
| } |
| MojoCdm::~MojoCdm() { |