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

Unified Diff: app/l10n_util.cc

Issue 3056029: Move the number conversions from string_util to a new file.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | « app/gfx/font_util.cc ('k') | app/l10n_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/l10n_util.cc
===================================================================
--- app/l10n_util.cc (revision 54340)
+++ app/l10n_util.cc (working copy)
@@ -16,8 +16,7 @@
#include "base/path_service.h"
#include "base/scoped_ptr.h"
#include "base/string16.h"
-#include "base/string_piece.h"
-#include "base/string_util.h"
+#include "base/string_number_conversions.h"
#include "base/sys_string_conversions.h"
#include "build/build_config.h"
#include "gfx/canvas.h"
@@ -648,11 +647,11 @@
}
std::wstring GetStringF(int message_id, int a) {
- return GetStringF(message_id, IntToWString(a));
+ return GetStringF(message_id, UTF8ToWide(base::IntToString(a)));
}
std::wstring GetStringF(int message_id, int64 a) {
- return GetStringF(message_id, Int64ToWString(a));
+ return GetStringF(message_id, UTF8ToWide(base::Int64ToString(a)));
}
std::wstring TruncateString(const std::wstring& string, size_t length) {
« no previous file with comments | « app/gfx/font_util.cc ('k') | app/l10n_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698