Index: content/child/simple_webmimeregistry_impl.cc |
diff --git a/content/child/simple_webmimeregistry_impl.cc b/content/child/simple_webmimeregistry_impl.cc |
index e7416d92041d5443c2cd4782704a549fa4fbb99e..0668a5f9b5f94ccf384557857e6b146ab4c60302 100644 |
--- a/content/child/simple_webmimeregistry_impl.cc |
+++ b/content/child/simple_webmimeregistry_impl.cc |
@@ -8,6 +8,7 @@ |
#include "base/strings/string_util.h" |
#include "base/strings/sys_string_conversions.h" |
#include "base/strings/utf_string_conversions.h" |
+#include "media/base/mime_util.h" |
#include "net/base/mime_util.h" |
#include "third_party/WebKit/public/platform/WebString.h" |
@@ -69,7 +70,8 @@ bool SimpleWebMimeRegistryImpl::supportsEncryptedMediaMIMEType( |
WebMimeRegistry::SupportsType |
SimpleWebMimeRegistryImpl::supportsNonImageMIMEType( |
const WebString& mime_type) { |
- return net::IsSupportedNonImageMimeType(ToASCIIOrEmpty(mime_type)) ? |
+ return (net::IsSupportedNonImageMimeType(ToASCIIOrEmpty(mime_type)) || |
+ media::IsSupportedMediaMimeType(ToASCIIOrEmpty(mime_type))) ? |
WebMimeRegistry::IsSupported : WebMimeRegistry::IsNotSupported; |
} |