Chromium Code Reviews| Index: webkit/api/src/FrameLoaderClientImpl.cpp |
| diff --git a/webkit/api/src/FrameLoaderClientImpl.cpp b/webkit/api/src/FrameLoaderClientImpl.cpp |
| index b7b310e452fdf9f63113049569938c0e41e8a583..f775ed390f5de71f99f5828a7015e43cf68c4adf 100644 |
| --- a/webkit/api/src/FrameLoaderClientImpl.cpp |
| +++ b/webkit/api/src/FrameLoaderClientImpl.cpp |
| @@ -53,6 +53,7 @@ |
| #include "WebFrameImpl.h" |
| #include "WebKit.h" |
| #include "WebKitClient.h" |
| +#include "WebMimeRegistry.h" |
| #include "WebNode.h" |
| #include "WebPlugin.h" |
| #include "WebPluginParams.h" |
| @@ -70,7 +71,6 @@ |
| #include "WrappedResourceResponse.h" |
| // FIXME: remove these |
| -#include "net/base/mime_util.h" |
| #include "webkit/glue/webdevtoolsagent_impl.h" |
| using namespace WebCore; |
| @@ -1118,7 +1118,8 @@ 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 (net::IsSupportedMimeType(mimeType.latin1().data())) |
| + if (WebKit::webKitClient()->mimeRegistry()->supportsMIMEType(mimeType) == |
|
darin (slow to review)
2009/10/31 22:35:49
feel free to not line wrap here since webkit style
|
| + WebMimeRegistry::IsSupported) |
| return true; |
| // If Chrome is started with the --disable-plugins switch, pluginData is null. |