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

Unified Diff: mojo/services/html_viewer/webmimeregistry_impl.cc

Issue 937323003: Remove obsolete supportsEncryptedMediaMIMEType() from html_viewer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « mojo/services/html_viewer/webmimeregistry_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/html_viewer/webmimeregistry_impl.cc
diff --git a/mojo/services/html_viewer/webmimeregistry_impl.cc b/mojo/services/html_viewer/webmimeregistry_impl.cc
index c839610700e7188bd0acb5babd2cd2f2e2c77a98..0b7b689393fafa9eb356646caa8aa924eda1670b 100644
--- a/mojo/services/html_viewer/webmimeregistry_impl.cc
+++ b/mojo/services/html_viewer/webmimeregistry_impl.cc
@@ -101,30 +101,6 @@ bool WebMimeRegistryImpl::supportsMediaSourceMIMEType(
parsed_codec_ids);
}
-bool WebMimeRegistryImpl::supportsEncryptedMediaMIMEType(
- const blink::WebString& key_system,
- const blink::WebString& mime_type,
- const blink::WebString& codecs) {
- // Only supports ASCII parameters.
- if (!base::IsStringASCII(key_system) || !base::IsStringASCII(mime_type) ||
- !base::IsStringASCII(codecs)) {
- return false;
- }
-
- if (key_system.isEmpty())
- return false;
-
- const std::string mime_type_ascii = base::UTF16ToASCII(mime_type);
-
- std::vector<std::string> codec_vector;
- bool strip_suffix = !net::IsStrictMediaMimeType(mime_type_ascii);
- net::ParseCodecString(base::UTF16ToASCII(codecs), &codec_vector,
- strip_suffix);
-
- return media::IsSupportedKeySystemWithMediaMimeType(
- mime_type_ascii, codec_vector, base::UTF16ToASCII(key_system));
-}
-
blink::WebMimeRegistry::SupportsType
WebMimeRegistryImpl::supportsNonImageMIMEType(
const blink::WebString& mime_type) {
« no previous file with comments | « mojo/services/html_viewer/webmimeregistry_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698