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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 1712903002: Remove prefixed EME. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix layout tests. 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
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index 27965a71fe39b3b8ccd29d86b1bd10fc26580ac5..8762537900453744e69801157f0bee987d12c213 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -457,26 +457,8 @@ RendererBlinkPlatformImpl::MimeRegistry::supportsMediaMIMEType(
const WebString& key_system) {
const std::string mime_type_ascii = ToASCIIOrEmpty(mime_type);
- if (!key_system.isEmpty()) {
- // Check whether the key system is supported with the mime_type and codecs.
-
- // Chromium only supports ASCII parameters.
- if (!base::IsStringASCII(key_system))
- return IsNotSupported;
-
- std::string key_system_ascii =
- media::GetUnprefixedKeySystemName(base::UTF16ToASCII(
- base::StringPiece16(key_system)));
- std::vector<std::string> codec_vector;
- media::ParseCodecString(ToASCIIOrEmpty(codecs), &codec_vector, true);
-
- if (!media::PrefixedIsSupportedKeySystemWithMediaMimeType(
- mime_type_ascii, codec_vector, key_system_ascii)) {
- return IsNotSupported;
- }
-
- // Continue processing the mime_type and codecs.
- }
+ // TODO(ddorwin): Remove reference |key_system|. https://crbug.com/249976.
+ DCHECK(key_system.isEmpty());
std::vector<std::string> codec_vector;
media::ParseCodecString(ToASCIIOrEmpty(codecs), &codec_vector, false);

Powered by Google App Engine
This is Rietveld 408576698