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

Unified Diff: media/blink/cdm_session_adapter.cc

Issue 748473002: Introduce CdmContext interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@set_cdm
Patch Set: Created 6 years, 1 month 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
Index: media/blink/cdm_session_adapter.cc
diff --git a/media/blink/cdm_session_adapter.cc b/media/blink/cdm_session_adapter.cc
index e54f43eaf9f1003bea718708d4610abb5c243c40..380430685273b77e216fcba23212b231e31ab123 100644
--- a/media/blink/cdm_session_adapter.cc
+++ b/media/blink/cdm_session_adapter.cc
@@ -128,7 +128,7 @@ void CdmSessionAdapter::GetUsableKeyIds(
}
Decryptor* CdmSessionAdapter::GetDecryptor() {
- return media_keys_->GetDecryptor();
+ return media_keys_->GetCdmContext()->GetDecryptor();
}
const std::string& CdmSessionAdapter::GetKeySystemUMAPrefix() const {
@@ -137,7 +137,7 @@ const std::string& CdmSessionAdapter::GetKeySystemUMAPrefix() const {
#if defined(ENABLE_BROWSER_CDMS)
int CdmSessionAdapter::GetCdmId() const {
- return media_keys_->GetCdmId();
+ return media_keys_->GetCdmContext()->GetCdmId();
}
#endif // defined(ENABLE_BROWSER_CDMS)

Powered by Google App Engine
This is Rietveld 408576698