Index: chromecast/media/cdm/browser_cdm_cast.cc |
diff --git a/chromecast/media/cdm/browser_cdm_cast.cc b/chromecast/media/cdm/browser_cdm_cast.cc |
index d00a96f25ec8630241ab6d3a29ef95131772642e..6dc60e648b6a2899a3cd2917fca37e81bf088f02 100644 |
--- a/chromecast/media/cdm/browser_cdm_cast.cc |
+++ b/chromecast/media/cdm/browser_cdm_cast.cc |
@@ -69,13 +69,11 @@ void BrowserCdmCast::LoadSession( |
return nullptr; |
} |
-void BrowserCdmCast::OnSessionMessage(const std::string& session_id, |
- const std::vector<uint8_t>& message, |
- const GURL& destination_url) { |
- // Note: Message type is not supported in Chromecast. Do our best guess here. |
- ::media::MediaKeys::MessageType message_type = |
- destination_url.is_empty() ? ::media::MediaKeys::LICENSE_REQUEST |
- : ::media::MediaKeys::LICENSE_RENEWAL; |
+void BrowserCdmCast::OnSessionMessage( |
+ const std::string& session_id, |
+ const std::vector<uint8_t>& message, |
+ const GURL& destination_url, |
+ ::media::MediaKeys::MessageType message_type) { |
session_message_cb_.Run(session_id, |
message_type, |
message, |