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

Unified Diff: components/cdm/renderer/widevine_key_systems.cc

Issue 1732423002: EME: Remove the concept of a parent key system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ks
Patch Set: Add test per review. Created 4 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
« no previous file with comments | « chrome/browser/media/encrypted_media_browsertest.cc ('k') | media/base/key_system_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cdm/renderer/widevine_key_systems.cc
diff --git a/components/cdm/renderer/widevine_key_systems.cc b/components/cdm/renderer/widevine_key_systems.cc
index 4931bd72c7d13af221d8927108361d71d5ddabc7..821dd06b1bc458be47ce0362b3dade5400953067 100644
--- a/components/cdm/renderer/widevine_key_systems.cc
+++ b/components/cdm/renderer/widevine_key_systems.cc
@@ -22,13 +22,6 @@ using media::SupportedCodecs;
namespace cdm {
-// Return |name|'s parent key system.
-static std::string GetDirectParentName(const std::string& name) {
- size_t last_period = name.find_last_of('.');
- DCHECK_GT(last_period, 0u);
- return name.substr(0u, last_period);
-}
-
void AddWidevineWithCodecs(
WidevineCdmType widevine_cdm_type,
SupportedCodecs supported_codecs,
@@ -47,8 +40,6 @@ void AddWidevineWithCodecs(
switch (widevine_cdm_type) {
case WIDEVINE:
- // For standard Widevine, add parent name.
- info.parent_key_system = GetDirectParentName(kWidevineKeySystem);
break;
#if defined(OS_ANDROID)
case WIDEVINE_HR_NON_COMPOSITING:
« no previous file with comments | « chrome/browser/media/encrypted_media_browsertest.cc ('k') | media/base/key_system_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698