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

Unified Diff: chrome/browser/chromeos/status/power_menu_button.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 | « chrome/browser/chromeos/cros/network_library.cc ('k') | chrome/browser/chromeos/update_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status/power_menu_button.cc
===================================================================
--- chrome/browser/chromeos/status/power_menu_button.cc (revision 54340)
+++ chrome/browser/chromeos/status/power_menu_button.cc (working copy)
@@ -6,6 +6,7 @@
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
+#include "base/string_number_conversions.h"
#include "base/time.h"
#include "chrome/browser/chromeos/cros/cros_library.h"
#include "gfx/canvas.h"
@@ -51,7 +52,7 @@
double percent = cros->battery_fully_charged() ? 100 :
cros->battery_percentage();
return l10n_util::GetStringFUTF16(IDS_STATUSBAR_BATTERY_PERCENTAGE,
- IntToString16(static_cast<int>(percent)));
+ base::IntToString16(static_cast<int>(percent)));
}
// The second item shows the battery is charged if it is.
@@ -77,8 +78,8 @@
IDS_STATUSBAR_BATTERY_TIME_UNTIL_EMPTY;
int hour = time.InHours();
int min = (time - base::TimeDelta::FromHours(hour)).InMinutes();
- string16 hour_str = IntToString16(hour);
- string16 min_str = IntToString16(min);
+ string16 hour_str = base::IntToString16(hour);
+ string16 min_str = base::IntToString16(min);
// Append a "0" before the minute if it's only a single digit.
if (min < 10)
min_str = ASCIIToUTF16("0") + min_str;
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.cc ('k') | chrome/browser/chromeos/update_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698