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

Unified Diff: content/browser/mime_registry_message_filter.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 | « components/html_viewer/web_mime_registry_impl.cc ('k') | content/child/simple_webmimeregistry_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mime_registry_message_filter.cc
diff --git a/content/browser/mime_registry_message_filter.cc b/content/browser/mime_registry_message_filter.cc
index 0a823af2a9ff984e51af9a7bbb5fc386bf523bea..1b6987e78767475dabd66acb79c47f3d35c7704c 100644
--- a/content/browser/mime_registry_message_filter.cc
+++ b/content/browser/mime_registry_message_filter.cc
@@ -28,8 +28,6 @@ bool MimeRegistryMessageFilter::OnMessageReceived(const IPC::Message& message) {
IPC_BEGIN_MESSAGE_MAP(MimeRegistryMessageFilter, message)
IPC_MESSAGE_HANDLER(MimeRegistryMsg_GetMimeTypeFromExtension,
OnGetMimeTypeFromExtension)
- IPC_MESSAGE_HANDLER(MimeRegistryMsg_GetMimeTypeFromFile,
- OnGetMimeTypeFromFile)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -40,9 +38,4 @@ void MimeRegistryMessageFilter::OnGetMimeTypeFromExtension(
net::GetMimeTypeFromExtension(ext, mime_type);
}
-void MimeRegistryMessageFilter::OnGetMimeTypeFromFile(
- const base::FilePath& file_path, std::string* mime_type) {
- net::GetMimeTypeFromFile(file_path, mime_type);
-}
-
} // namespace content
« no previous file with comments | « components/html_viewer/web_mime_registry_impl.cc ('k') | content/child/simple_webmimeregistry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698