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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 1476763004: Remove unused code from WebMimeRegistry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove implementations Created 5 years, 1 month 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 | « content/common/mime_registry_messages.h ('k') | third_party/WebKit/public/platform/WebMimeRegistry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index 0c868ec84f85bf96f03b0be2cb882e93b8cdc4ad..c6c147efa16173ec74359d2d3e6da660e00662b4 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -185,7 +185,6 @@ class RendererBlinkPlatformImpl::MimeRegistry
const blink::WebString& codecs) override;
blink::WebString mimeTypeForExtension(
const blink::WebString& file_extension) override;
- blink::WebString mimeTypeFromFile(const blink::WebString& file_path) override;
};
class RendererBlinkPlatformImpl::FileUtilities : public WebFileUtilitiesImpl {
@@ -513,20 +512,6 @@ WebString RendererBlinkPlatformImpl::MimeRegistry::mimeTypeForExtension(
return base::ASCIIToUTF16(mime_type);
}
-WebString RendererBlinkPlatformImpl::MimeRegistry::mimeTypeFromFile(
- const WebString& file_path) {
- if (IsPluginProcess())
- return SimpleWebMimeRegistryImpl::mimeTypeFromFile(file_path);
-
- // The sandbox restricts our access to the registry, so we need to proxy
- // these calls over to the browser process.
- std::string mime_type;
- RenderThread::Get()->Send(new MimeRegistryMsg_GetMimeTypeFromFile(
- base::FilePath::FromUTF16Unsafe(file_path),
- &mime_type));
- return base::ASCIIToUTF16(mime_type);
-}
-
//------------------------------------------------------------------------------
bool RendererBlinkPlatformImpl::FileUtilities::getFileInfo(
« no previous file with comments | « content/common/mime_registry_messages.h ('k') | third_party/WebKit/public/platform/WebMimeRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698