diff options
Diffstat (limited to 'webkit/api/src/FrameLoaderClientImpl.cpp')
-rw-r--r-- | webkit/api/src/FrameLoaderClientImpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/api/src/FrameLoaderClientImpl.cpp b/webkit/api/src/FrameLoaderClientImpl.cpp index e270774..b7b310e 100644 --- a/webkit/api/src/FrameLoaderClientImpl.cpp +++ b/webkit/api/src/FrameLoaderClientImpl.cpp @@ -53,7 +53,6 @@ #include "WebFrameImpl.h" #include "WebKit.h" #include "WebKitClient.h" -#include "WebMimeRegistry.h" #include "WebNode.h" #include "WebPlugin.h" #include "WebPluginParams.h" @@ -71,6 +70,7 @@ #include "WrappedResourceResponse.h" // FIXME: remove these +#include "net/base/mime_util.h" #include "webkit/glue/webdevtoolsagent_impl.h" using namespace WebCore; @@ -1118,7 +1118,7 @@ bool FrameLoaderClientImpl::canShowMIMEType(const String& mimeType) const // mimeType strings are supposed to be ASCII, but if they are not for some // reason, then it just means that the mime type will fail all of these "is // supported" checks and go down the path of an unhandled mime type. - if (WebKit::webKitClient()->mimeRegistry()->supportsMIMEType(mimeType) == WebMimeRegistry::IsSupported) + if (net::IsSupportedMimeType(mimeType.latin1().data())) return true; // If Chrome is started with the --disable-plugins switch, pluginData is null. |