diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 19:47:20 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 19:47:20 +0000 |
commit | e5a8c47bda7fe8e3d8491fdd74cd166da02b8a7b (patch) | |
tree | 35f5b482eb88291018ecc7a9236d6a9067329fe5 /chrome/browser/autocomplete | |
parent | 13ecb04b3a06a7e84c95a6b7c99f64529aa03b61 (diff) | |
download | chromium_src-e5a8c47bda7fe8e3d8491fdd74cd166da02b8a7b.zip chromium_src-e5a8c47bda7fe8e3d8491fdd74cd166da02b8a7b.tar.gz chromium_src-e5a8c47bda7fe8e3d8491fdd74cd166da02b8a7b.tar.bz2 |
Remove a deprecated wstring ToLower function.
BUG=23581
Review URL: http://codereview.chromium.org/3044043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54946 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r-- | chrome/browser/autocomplete/search_provider.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/search_provider.cc b/chrome/browser/autocomplete/search_provider.cc index 08dc01c..77359c7 100644 --- a/chrome/browser/autocomplete/search_provider.cc +++ b/chrome/browser/autocomplete/search_provider.cc @@ -716,7 +716,7 @@ void SearchProvider::AddMatchToMap(const std::wstring& query_string, // NOTE: Keep this ToLower() call in sync with url_database.cc. const std::pair<MatchMap::iterator, bool> i = map->insert( std::pair<std::wstring, AutocompleteMatch>( - l10n_util::ToLower(query_string), match)); + UTF16ToWide(l10n_util::ToLower(WideToUTF16(query_string))), match)); // NOTE: We purposefully do a direct relevance comparison here instead of // using AutocompleteMatch::MoreRelevant(), so that we'll prefer "items added // first" rather than "items alphabetically first" when the scores are equal. |