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

Unified Diff: components/html_viewer/web_mime_registry_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 | « components/html_viewer/web_mime_registry_impl.h ('k') | content/browser/mime_registry_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/web_mime_registry_impl.cc
diff --git a/components/html_viewer/web_mime_registry_impl.cc b/components/html_viewer/web_mime_registry_impl.cc
index 01ee2d67b10703055f250146176f2be4767d6371..07975117db1c81124b826defefc983e106237998 100644
--- a/components/html_viewer/web_mime_registry_impl.cc
+++ b/components/html_viewer/web_mime_registry_impl.cc
@@ -117,12 +117,4 @@ blink::WebString WebMimeRegistryImpl::wellKnownMimeTypeForExtension(
return blink::WebString::fromUTF8(mime_type);
}
-blink::WebString WebMimeRegistryImpl::mimeTypeFromFile(
- const blink::WebString& file_path) {
- std::string mime_type;
- net::GetMimeTypeFromFile(base::FilePath::FromUTF16Unsafe(file_path),
- &mime_type);
- return blink::WebString::fromUTF8(mime_type);
-}
-
} // namespace html_viewer
« no previous file with comments | « components/html_viewer/web_mime_registry_impl.h ('k') | content/browser/mime_registry_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698