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

Unified Diff: media/cdm/key_system_names.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 | « media/cdm/key_system_names.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/key_system_names.cc
diff --git a/media/cdm/key_system_names.cc b/media/cdm/key_system_names.cc
index f0f1c2e7e9faffd431c7b2597d9526e10837b96b..bcddaea2043ba9047bef0d3860eefd6075621ca4 100644
--- a/media/cdm/key_system_names.cc
+++ b/media/cdm/key_system_names.cc
@@ -13,15 +13,15 @@ bool IsClearKey(const std::string& key_system) {
return key_system == kClearKey;
}
-bool IsParentKeySystemOf(const std::string& parent_key_system,
- const std::string& key_system) {
- std::string prefix = parent_key_system + '.';
+bool IsChildKeySystemOf(const std::string& key_system,
+ const std::string& base) {
+ std::string prefix = base + '.';
return key_system.substr(0, prefix.size()) == prefix;
}
bool IsExternalClearKey(const std::string& key_system) {
return key_system == kExternalClearKey ||
- IsParentKeySystemOf(kExternalClearKey, key_system);
+ IsChildKeySystemOf(key_system, kExternalClearKey);
}
} // namespace media
« no previous file with comments | « media/cdm/key_system_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698