| Index: media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
|
| diff --git a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
|
| index 48b0bb063c0b72a3ad1fea7783486922d3b5b0d0..c06c76ad3098af37415a99f41fd7101131bf6013 100644
|
| --- a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
|
| +++ b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
|
| @@ -671,7 +671,8 @@ void ClearKeyCdm::LoadLoadableSession() {
|
|
|
| void ClearKeyCdm::OnSessionMessage(const std::string& web_session_id,
|
| MediaKeys::MessageType message_type,
|
| - const std::vector<uint8>& message) {
|
| + const std::vector<uint8>& message,
|
| + const GURL& legacy_destination_url) {
|
| DVLOG(1) << "OnSessionMessage: " << message.size();
|
|
|
| // Ignore the message when we are waiting to update the loadable session.
|
| @@ -682,13 +683,11 @@ void ClearKeyCdm::OnSessionMessage(const std::string& web_session_id,
|
| // involved (OnSessionCreated() called to resolve the CreateSession()
|
| // promise).
|
| // TODO(jrummell): Pass |message_type| on when this class is updated
|
| - // to Host_7. For now, pass NULL as the |destination_url| since we have
|
| - // no idea what it should be.
|
| - host_->OnSessionMessage(web_session_id.data(),
|
| - web_session_id.length(),
|
| + // to Host_7.
|
| + host_->OnSessionMessage(web_session_id.data(), web_session_id.length(),
|
| reinterpret_cast<const char*>(message.data()),
|
| - message.size(),
|
| - nullptr, 0);
|
| + message.size(), legacy_destination_url.spec().data(),
|
| + legacy_destination_url.spec().size());
|
| }
|
|
|
| void ClearKeyCdm::OnSessionKeysChange(const std::string& web_session_id,
|
|
|