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

Unified Diff: content/browser/mime_registry_impl.cc

Issue 2522553003: Mojo C++ bindings: switch WebKit mojom targets to use STL/WTF types. (Closed)
Patch Set: . Created 4 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
Index: content/browser/mime_registry_impl.cc
diff --git a/content/browser/mime_registry_impl.cc b/content/browser/mime_registry_impl.cc
index 156551d7e6f74ee559302a95d6fb1a6c3609de85..e65c19997be513c1059c14faf9b800a9fd694643 100644
--- a/content/browser/mime_registry_impl.cc
+++ b/content/browser/mime_registry_impl.cc
@@ -24,12 +24,12 @@ void MimeRegistryImpl::Create(blink::mojom::MimeRegistryRequest request) {
}
void MimeRegistryImpl::GetMimeTypeFromExtension(
- const mojo::String& extension,
+ const std::string& extension,
const GetMimeTypeFromExtensionCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::FILE);
std::string mime_type;
- net::GetMimeTypeFromExtension(extension.To<base::FilePath::StringType>(),
- &mime_type);
+ net::GetMimeTypeFromExtension(
+ mojo::String(extension).To<base::FilePath::StringType>(), &mime_type);
callback.Run(mime_type);
}
« no previous file with comments | « content/browser/mime_registry_impl.h ('k') | content/browser/notifications/blink_notification_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698