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

Unified Diff: chrome/browser/autocomplete/history_quick_provider.cc

Issue 109013006: Update some uses of UTF conversions in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 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: chrome/browser/autocomplete/history_quick_provider.cc
diff --git a/chrome/browser/autocomplete/history_quick_provider.cc b/chrome/browser/autocomplete/history_quick_provider.cc
index 0ae6b11027911edbbbdb9aa4ad577633ef0c7de9..65acf3ca7a9dfc293af87036c234cac245b8636a 100644
--- a/chrome/browser/autocomplete/history_quick_provider.cc
+++ b/chrome/browser/autocomplete/history_quick_provider.cc
@@ -147,9 +147,10 @@ void HistoryQuickProvider::DoAutocomplete() {
// provider completions compete with the URL-what-you-typed
// match as normal.
if (url_db) {
- const std::string host(UTF16ToUTF8(autocomplete_input_.text().substr(
- autocomplete_input_.parts().host.begin,
- autocomplete_input_.parts().host.len)));
+ const std::string host(base::UTF16ToUTF8(
+ autocomplete_input_.text().substr(
+ autocomplete_input_.parts().host.begin,
+ autocomplete_input_.parts().host.len)));
// We want to put the URL-what-you-typed match first if either
// * the user visited the URL before (intranet or internet).
// * it's a URL on a host that user visited before and this

Powered by Google App Engine
This is Rietveld 408576698