Index: chrome/renderer/media/chrome_key_systems.cc |
diff --git a/chrome/renderer/media/chrome_key_systems.cc b/chrome/renderer/media/chrome_key_systems.cc |
index 9df9fd0b579e1adc49a2265af7994b5b1acfe9eb..e27a3da285bab141355af02b2bc76e0d4006c9a4 100644 |
--- a/chrome/renderer/media/chrome_key_systems.cc |
+++ b/chrome/renderer/media/chrome_key_systems.cc |
@@ -62,6 +62,8 @@ static bool IsPepperCdmAvailable( |
// External Clear Key (used for testing). |
static void AddExternalClearKey( |
std::vector<std::unique_ptr<KeySystemProperties>>* concrete_key_systems) { |
+ // TODO(xhwang): Move these into an array so we can use a for loop to add |
+ // supported key systems below. |
static const char kExternalClearKeyKeySystem[] = |
"org.chromium.externalclearkey"; |
static const char kExternalClearKeyDecryptOnlyKeySystem[] = |
@@ -78,6 +80,8 @@ static void AddExternalClearKey( |
"org.chromium.externalclearkey.initializefail"; |
static const char kExternalClearKeyCrashKeySystem[] = |
"org.chromium.externalclearkey.crash"; |
+ static const char kExternalClearKeyVerifyCdmHostTestKeySystem[] = |
+ "org.chromium.externalclearkey.verifycdmhosttest"; |
std::vector<base::string16> additional_param_names; |
std::vector<base::string16> additional_param_values; |
@@ -119,6 +123,10 @@ static void AddExternalClearKey( |
// A key system that triggers a crash in ClearKeyCdm. |
concrete_key_systems->emplace_back( |
new cdm::ExternalClearKeyProperties(kExternalClearKeyCrashKeySystem)); |
+ |
+ // A key system that triggers the verify host files test in ClearKeyCdm. |
+ concrete_key_systems->emplace_back(new cdm::ExternalClearKeyProperties( |
+ kExternalClearKeyVerifyCdmHostTestKeySystem)); |
} |
#if defined(WIDEVINE_CDM_AVAILABLE) |