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

Unified Diff: third_party/WebKit/Source/platform/MIMETypeRegistry.cpp

Issue 2440163002: Cleanup WebMIMERegistry implementation and fix LinkLoader behavior (Closed)
Patch Set: minor fix Created 4 years, 2 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: third_party/WebKit/Source/platform/MIMETypeRegistry.cpp
diff --git a/third_party/WebKit/Source/platform/MIMETypeRegistry.cpp b/third_party/WebKit/Source/platform/MIMETypeRegistry.cpp
index 6f659ff6b28d2315427a7b7a907d85744dc20744..3245c555e129a5aa5c8f89ff3ae9998c6793a840 100644
--- a/third_party/WebKit/Source/platform/MIMETypeRegistry.cpp
+++ b/third_party/WebKit/Source/platform/MIMETypeRegistry.cpp
@@ -92,11 +92,16 @@ bool MIMETypeRegistry::isSupportedNonImageMIMEType(const String& mimeType) {
mimeType.lower()) != WebMimeRegistry::IsNotSupported;
}
+bool MIMETypeRegistry::isSupportedMediaMIMEType(const String& mimeType,
+ const String& codecs) {
+ return Platform::current()->mimeRegistry()->supportsMediaMIMEType(
+ mimeType.lower(), codecs);
+}
+
bool MIMETypeRegistry::isSupportedMediaSourceMIMEType(const String& mimeType,
const String& codecs) {
- return !mimeType.isEmpty() &&
- Platform::current()->mimeRegistry()->supportsMediaSourceMIMEType(
- mimeType.lower(), codecs);
+ return Platform::current()->mimeRegistry()->supportsMediaSourceMIMEType(
+ mimeType.lower(), codecs);
}
bool MIMETypeRegistry::isJavaAppletMIMEType(const String& mimeType) {

Powered by Google App Engine
This is Rietveld 408576698