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

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

Issue 267001: Separate out some more ICU from base and into base/i18n.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « base/string_util_unittest.cc ('k') | chrome/browser/browser_about_handler.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 28217)
+++ chrome/browser/autocomplete/autocomplete.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -8,6 +8,7 @@
#include "app/l10n_util.h"
#include "base/basictypes.h"
+#include "base/i18n/number_formatting.h"
#include "base/string_util.h"
#include "chrome/browser/autocomplete/history_url_provider.h"
#include "chrome/browser/autocomplete/history_contents_provider.h"
@@ -879,12 +880,12 @@
} else {
// We can report exact matches when there aren't too many.
std::vector<size_t> content_param_offsets;
- match.contents =
- l10n_util::GetStringF(IDS_OMNIBOX_RECENT_HISTORY,
- FormatNumber(history_contents_provider_->
- db_match_count()),
- input_.text(),
- &content_param_offsets);
+ match.contents = l10n_util::GetStringF(
+ IDS_OMNIBOX_RECENT_HISTORY,
+ UTF16ToWide(base::FormatNumber(history_contents_provider_->
+ db_match_count())),
+ 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 | « base/string_util_unittest.cc ('k') | chrome/browser/browser_about_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698