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

Unified Diff: content/browser/mime_registry_impl.cc

Issue 2608513002: Remove mojo::String. (Closed)
Patch Set: Created 4 years 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698