Index: webkit/media/crypto/key_systems_info.cc |
diff --git a/webkit/media/crypto/key_systems_info.cc b/webkit/media/crypto/key_systems_info.cc |
index 8fc2c42fe279e994de669c581412f346a5f6b1d0..afe1abaa3b9e5adf907f25ec804c1823ab37bc13 100644 |
--- a/webkit/media/crypto/key_systems_info.cc |
+++ b/webkit/media/crypto/key_systems_info.cc |
@@ -89,16 +89,17 @@ const MediaFormatAndKeySystem kSupportedFormatKeySystemCombinations[] = { |
const int kNumSupportedFormatKeySystemCombinations = |
arraysize(kSupportedFormatKeySystemCombinations); |
-const KeySystemPluginTypePair kKeySystemToPluginTypeMapping[] = { |
- // TODO(xhwang): Update this with the real plugin name. |
+#if defined(ENABLE_PEPPER_CDMS) |
+const KeySystemPepperTypePair kKeySystemToPepperTypeMapping[] = { |
{ kExternalClearKeyKeySystem, "application/x-ppapi-clearkey-cdm"}, |
#if defined(WIDEVINE_CDM_AVAILABLE) |
{ kWidevineKeySystem, kWidevineCdmPluginMimeType} |
#endif // WIDEVINE_CDM_AVAILABLE |
}; |
-const int kNumKeySystemToPluginTypeMapping = |
- arraysize(kKeySystemToPluginTypeMapping); |
+const int kNumKeySystemToPepperTypeMapping = |
+ arraysize(kKeySystemToPepperTypeMapping); |
+#endif // defined(ENABLE_PEPPER_CDMS) |
bool IsSystemCompatible(const std::string& key_system) { |
#if defined(WIDEVINE_CDM_AVAILABLE) && \ |