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

Unified Diff: chrome/browser/autocomplete/autocomplete.cc

Issue 5959008: Remove wstring from l10n_util. Part 2.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « app/l10n_util_unittest.cc ('k') | chrome/browser/content_exceptions_table_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete.cc (revision 70233)
+++ chrome/browser/autocomplete/autocomplete.cc (working copy)
@@ -958,18 +958,19 @@
if (history_contents_provider_->db_match_count() ==
history_contents_provider_->kMaxMatchCount) {
// History contents searcher has maxed out.
- match.contents = l10n_util::GetStringF(IDS_OMNIBOX_RECENT_HISTORY_MANY,
- input_.text(),
- &keyword_offset);
+ match.contents = UTF16ToWideHack(
+ l10n_util::GetStringFUTF16(IDS_OMNIBOX_RECENT_HISTORY_MANY,
+ WideToUTF16Hack(input_.text()),
+ &keyword_offset));
} else {
// We can report exact matches when there aren't too many.
std::vector<size_t> content_param_offsets;
- match.contents = l10n_util::GetStringF(
+ match.contents = UTF16ToWideHack(l10n_util::GetStringFUTF16(
IDS_OMNIBOX_RECENT_HISTORY,
- UTF16ToWide(base::FormatNumber(history_contents_provider_->
- db_match_count())),
- input_.text(),
- &content_param_offsets);
+ base::FormatNumber(history_contents_provider_->
+ db_match_count()),
+ WideToUTF16Hack(input_.text()),
+ &content_param_offsets));
// content_param_offsets is ordered based on supplied params, we expect
// that the second one contains the query (first is the number).
« no previous file with comments | « app/l10n_util_unittest.cc ('k') | chrome/browser/content_exceptions_table_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698