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

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

Issue 6306011: Remove wstring from autocomplete. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months 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_url_provider.h
===================================================================
--- chrome/browser/autocomplete/history_url_provider.h (revision 72388)
+++ chrome/browser/autocomplete/history_url_provider.h (working copy)
@@ -192,7 +192,7 @@
// match's URL to just a host. If this host still matches the user input,
// return it. Returns the empty string on failure.
static GURL ConvertToHostOnly(const history::HistoryMatch& match,
- const std::wstring& input);
+ const string16& input);
// See if a shorter version of the best match should be created, and if so
// place it at the front of |matches|. This can suggest history URLs that
@@ -216,7 +216,7 @@
// |promote| is false, existing matches are left in place, and newly added
// matches are placed at the back.
static void EnsureMatchPresent(const history::URLRow& info,
- std::wstring::size_type input_location,
+ string16::size_type input_location,
bool match_in_scheme,
history::HistoryMatches* matches,
bool promote);
@@ -232,7 +232,7 @@
// prefix. This is useful when you need to figure out the innermost match
// for some user input in a URL.
const history::Prefix* BestPrefix(const GURL& text,
- const std::wstring& prefix_suffix) const;
+ const string16& prefix_suffix) const;
// Returns a match corresponding to exactly what the user has typed.
AutocompleteMatch SuggestExactInput(const AutocompleteInput& input,

Powered by Google App Engine
This is Rietveld 408576698