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

Unified Diff: chrome/browser/autocomplete/url_prefix.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/url_prefix.cc
diff --git a/chrome/browser/autocomplete/url_prefix.cc b/chrome/browser/autocomplete/url_prefix.cc
index 51a0c7cdcfa7791d44abf2cb5d0672cdb334a7bc..b304c7c56a5e5fd026a4085ba4e8adbe027ec392 100644
--- a/chrome/browser/autocomplete/url_prefix.cc
+++ b/chrome/browser/autocomplete/url_prefix.cc
@@ -17,13 +17,13 @@ URLPrefix::URLPrefix(const base::string16& prefix, size_t num_components)
const URLPrefixes& URLPrefix::GetURLPrefixes() {
CR_DEFINE_STATIC_LOCAL(URLPrefixes, prefixes, ());
if (prefixes.empty()) {
- prefixes.push_back(URLPrefix(ASCIIToUTF16("https://www."), 2));
- prefixes.push_back(URLPrefix(ASCIIToUTF16("http://www."), 2));
- prefixes.push_back(URLPrefix(ASCIIToUTF16("ftp://ftp."), 2));
- prefixes.push_back(URLPrefix(ASCIIToUTF16("ftp://www."), 2));
- prefixes.push_back(URLPrefix(ASCIIToUTF16("https://"), 1));
- prefixes.push_back(URLPrefix(ASCIIToUTF16("http://"), 1));
- prefixes.push_back(URLPrefix(ASCIIToUTF16("ftp://"), 1));
+ prefixes.push_back(URLPrefix(base::ASCIIToUTF16("https://www."), 2));
+ prefixes.push_back(URLPrefix(base::ASCIIToUTF16("http://www."), 2));
+ prefixes.push_back(URLPrefix(base::ASCIIToUTF16("ftp://ftp."), 2));
+ prefixes.push_back(URLPrefix(base::ASCIIToUTF16("ftp://www."), 2));
+ prefixes.push_back(URLPrefix(base::ASCIIToUTF16("https://"), 1));
+ prefixes.push_back(URLPrefix(base::ASCIIToUTF16("http://"), 1));
+ prefixes.push_back(URLPrefix(base::ASCIIToUTF16("ftp://"), 1));
prefixes.push_back(URLPrefix(base::string16(), 0));
}
return prefixes;
« no previous file with comments | « chrome/browser/autocomplete/shortcuts_provider_unittest.cc ('k') | chrome/browser/autocomplete/zero_suggest_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698