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

Unified Diff: media/blink/cdm_session_adapter.cc

Issue 897133002: Check InitDateType is supported by key system when creating session (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: media/blink/cdm_session_adapter.cc
diff --git a/media/blink/cdm_session_adapter.cc b/media/blink/cdm_session_adapter.cc
index 9fe248ce56db9dfd20495330d304aee7a24b4ed1..f02ff4ede5df9044cb6fcde5ffa6ae1ecba319ac 100644
--- a/media/blink/cdm_session_adapter.cc
+++ b/media/blink/cdm_session_adapter.cc
@@ -29,6 +29,7 @@ CdmSessionAdapter::~CdmSessionAdapter() {}
bool CdmSessionAdapter::Initialize(CdmFactory* cdm_factory,
const std::string& key_system,
const GURL& security_origin) {
+ key_system_ = key_system;
key_system_uma_prefix_ =
kMediaEME + GetKeySystemNameForUMA(key_system) + kDot;
@@ -110,6 +111,10 @@ CdmContext* CdmSessionAdapter::GetCdmContext() {
return media_keys_->GetCdmContext();
}
+const std::string& CdmSessionAdapter::GetKeySystem() const {
+ return key_system_;
+}
+
const std::string& CdmSessionAdapter::GetKeySystemUMAPrefix() const {
return key_system_uma_prefix_;
}

Powered by Google App Engine
This is Rietveld 408576698