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

Unified Diff: chrome/browser/autocomplete/shortcuts_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/shortcuts_provider.cc
diff --git a/chrome/browser/autocomplete/shortcuts_provider.cc b/chrome/browser/autocomplete/shortcuts_provider.cc
index c5d65ab9f6905ca2b6abd583c9346eecf4914c27..0c1a5f100fc522a6ace812471dea929d699b6e97 100644
--- a/chrome/browser/autocomplete/shortcuts_provider.cc
+++ b/chrome/browser/autocomplete/shortcuts_provider.cc
@@ -56,7 +56,8 @@ class DestinationURLEqualsURL {
const URLPrefix* BestURLPrefixWithWWWCase(
const base::string16& text,
const base::string16& prefix_suffix) {
- CR_DEFINE_STATIC_LOCAL(URLPrefix, www_prefix, (ASCIIToUTF16("www."), 1));
+ CR_DEFINE_STATIC_LOCAL(URLPrefix, www_prefix,
+ (base::ASCIIToUTF16("www."), 1));
const URLPrefix* best_prefix = URLPrefix::BestURLPrefix(text, prefix_suffix);
if ((best_prefix == NULL) ||
(best_prefix->num_components < www_prefix.num_components)) {
@@ -220,7 +221,8 @@ AutocompleteMatch ShortcutsProvider::ShortcutToACMatch(
DCHECK(match.destination_url.is_valid());
match.RecordAdditionalInfo("number of hits", shortcut.number_of_hits);
match.RecordAdditionalInfo("last access time", shortcut.last_access_time);
- match.RecordAdditionalInfo("original input text", UTF16ToUTF8(shortcut.text));
+ match.RecordAdditionalInfo("original input text",
+ base::UTF16ToUTF8(shortcut.text));
// Set |inline_autocompletion| and |allowed_to_be_default_match| if possible.
// If the match is a search query this is easy: simply check whether the
« no previous file with comments | « chrome/browser/autocomplete/search_provider_unittest.cc ('k') | chrome/browser/autocomplete/shortcuts_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698