Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2010)

Unified Diff: content/renderer/media/cdm_session_adapter.cc

Issue 685373003: Stop generating ready and error events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/media/webcontentdecryptionmodulesession_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/cdm_session_adapter.cc
diff --git a/content/renderer/media/cdm_session_adapter.cc b/content/renderer/media/cdm_session_adapter.cc
index af88c70a5f84350517c21e387cdbd6e5a50d5044..276bb3e3f2df9b8d19c46f301fcf718e1d8a3fa6 100644
--- a/content/renderer/media/cdm_session_adapter.cc
+++ b/content/renderer/media/cdm_session_adapter.cc
@@ -166,11 +166,8 @@ void CdmSessionAdapter::OnSessionExpirationUpdate(
}
void CdmSessionAdapter::OnSessionReady(const std::string& web_session_id) {
- WebContentDecryptionModuleSessionImpl* session = GetSession(web_session_id);
- DLOG_IF(WARNING, !session) << __FUNCTION__ << " for unknown session "
- << web_session_id;
- if (session)
- session->OnSessionReady();
+ // Ready events not used by unprefixed EME.
+ // TODO(jrummell): Remove when prefixed EME removed.
}
void CdmSessionAdapter::OnSessionClosed(const std::string& web_session_id) {
@@ -186,11 +183,8 @@ void CdmSessionAdapter::OnSessionError(
media::MediaKeys::Exception exception_code,
uint32 system_code,
const std::string& error_message) {
- WebContentDecryptionModuleSessionImpl* session = GetSession(web_session_id);
- DLOG_IF(WARNING, !session) << __FUNCTION__ << " for unknown session "
- << web_session_id;
- if (session)
- session->OnSessionError(exception_code, system_code, error_message);
+ // Error events not used by unprefixed EME.
+ // TODO(jrummell): Remove when prefixed EME removed.
}
WebContentDecryptionModuleSessionImpl* CdmSessionAdapter::GetSession(
« no previous file with comments | « no previous file | content/renderer/media/webcontentdecryptionmodulesession_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698