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

Unified Diff: chrome/renderer/media/chrome_key_systems.cc

Issue 185993004: Encrypted Media: Confine UUID code to MediaDrmBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 6 years, 9 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: 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 5454c813bf58de41988eb7ce0c69109397d2806b..d0a9b58e2de9045f6492aa857c5fc95d32c6d6a5 100644
--- a/chrome/renderer/media/chrome_key_systems.cc
+++ b/chrome/renderer/media/chrome_key_systems.cc
@@ -148,10 +148,6 @@ COMPILE_ASSERT_MATCHING_ENUM(WEBM_VP8_AND_VORBIS);
COMPILE_ASSERT_MATCHING_ENUM(MP4_AAC);
COMPILE_ASSERT_MATCHING_ENUM(MP4_AVC1);
#undef COMPILE_ASSERT_MATCHING_ENUM
-
-static const uint8 kWidevineUuid[16] = {
- 0xED, 0xEF, 0x8B, 0xA9, 0x79, 0xD6, 0x4A, 0xCE,
- 0xA3, 0xC8, 0x27, 0xDC, 0xD5, 0x1D, 0x21, 0xED };
#else
static bool IsWidevineHrSupported() {
// TODO(jrummell): Need to call CheckPlatformState() but it is
@@ -213,8 +209,6 @@ static void AddWidevineWithCodecs(
#if defined(ENABLE_PEPPER_CDMS)
info.pepper_type = kWidevineCdmPluginMimeType;
-#elif defined(OS_ANDROID)
- info.uuid.assign(kWidevineUuid, kWidevineUuid + arraysize(kWidevineUuid));
#endif // defined(ENABLE_PEPPER_CDMS)
concrete_key_systems->push_back(info);
@@ -297,8 +291,7 @@ static void AddAndroidWidevine(
SupportedKeySystemRequest request;
SupportedKeySystemResponse response;
- request.uuid.insert(request.uuid.begin(), kWidevineUuid,
- kWidevineUuid + arraysize(kWidevineUuid));
+ request.key_system = kWidevineKeySystem;
#if defined(USE_PROPRIETARY_CODECS)
request.codecs = static_cast<android::SupportedCodecs>(
android::MP4_AAC | android::MP4_AVC1);
« no previous file with comments | « chrome/common/encrypted_media_messages_android.h ('k') | content/browser/media/android/browser_media_player_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698