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

Unified Diff: chrome/browser/autocomplete/shortcuts_provider.h

Issue 105193002: Replace string16 with base::string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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.h
diff --git a/chrome/browser/autocomplete/shortcuts_provider.h b/chrome/browser/autocomplete/shortcuts_provider.h
index fd565220ba098ce720edbccc38128c64ac8c069b..27f9d7f4cb737815229b0f89017eeaab11c3b641 100644
--- a/chrome/browser/autocomplete/shortcuts_provider.h
+++ b/chrome/browser/autocomplete/shortcuts_provider.h
@@ -40,7 +40,7 @@ class ShortcutsProvider
friend class ClassifyTest;
friend class history::ShortcutsProviderTest;
- typedef std::multimap<char16, string16> WordMap;
+ typedef std::multimap<char16, base::string16> WordMap;
virtual ~ShortcutsProvider();
@@ -52,14 +52,14 @@ class ShortcutsProvider
AutocompleteMatch ShortcutToACMatch(
int relevance,
- const string16& terms,
+ const base::string16& terms,
const history::ShortcutsBackend::Shortcut& shortcut);
// Returns a map mapping characters to groups of words from |text| that start
// with those characters, ordered lexicographically descending so that longer
// words appear before their prefixes (if any) within a particular
// equal_range().
- static WordMap CreateWordMapForString(const string16& text);
+ static WordMap CreateWordMapForString(const base::string16& text);
// Given |text| and a corresponding base set of classifications
// |original_class|, adds ACMatchClassification::MATCH markers for all
@@ -82,19 +82,19 @@ class ShortcutsProvider
// |find_text| (and thus |find_words|) are expected to be lowercase. |text|
// will be lowercased in this function.
static ACMatchClassifications ClassifyAllMatchesInString(
- const string16& find_text,
+ const base::string16& find_text,
const WordMap& find_words,
- const string16& text,
+ const base::string16& text,
const ACMatchClassifications& original_class);
// Returns iterator to first item in |shortcuts_map_| matching |keyword|.
// Returns shortcuts_map_.end() if there are no matches.
history::ShortcutsBackend::ShortcutMap::const_iterator FindFirstMatch(
- const string16& keyword,
+ const base::string16& keyword,
history::ShortcutsBackend* backend);
int CalculateScore(
- const string16& terms,
+ const base::string16& terms,
const history::ShortcutsBackend::Shortcut& shortcut,
int max_relevance);
« no previous file with comments | « chrome/browser/autocomplete/search_provider_unittest.cc ('k') | chrome/browser/autocomplete/shortcuts_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698