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

Unified Diff: content/browser/mime_registry_impl.cc

Issue 2608513002: Remove mojo::String. (Closed)
Patch Set: rebase Created 3 years, 12 months 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/filesystem/util.cc ('k') | content/browser/presentation/presentation_service_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mime_registry_impl.cc
diff --git a/content/browser/mime_registry_impl.cc b/content/browser/mime_registry_impl.cc
index a7016ad2a90ef0676c5b2a7edef02b2696f21076..09e6aebe8841f02be93cb1a16d79c45c50760cdf 100644
--- a/content/browser/mime_registry_impl.cc
+++ b/content/browser/mime_registry_impl.cc
@@ -30,7 +30,7 @@ void MimeRegistryImpl::GetMimeTypeFromExtension(
DCHECK_CURRENTLY_ON(BrowserThread::FILE);
std::string mime_type;
net::GetMimeTypeFromExtension(
- mojo::String(extension).To<base::FilePath::StringType>(), &mime_type);
+ base::FilePath::FromUTF8Unsafe(extension).value(), &mime_type);
callback.Run(mime_type);
}
« no previous file with comments | « components/filesystem/util.cc ('k') | content/browser/presentation/presentation_service_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698