Index: ash/system/chromeos/power/power_status.cc |
diff --git a/ash/system/chromeos/power/power_status.cc b/ash/system/chromeos/power/power_status.cc |
index 24d29d68b68a45797b09804e3dadcda2d08c5f67..68cdf1a5574bf6709a89861c647ea1cc6b5b38e0 100644 |
--- a/ash/system/chromeos/power/power_status.cc |
+++ b/ash/system/chromeos/power/power_status.cc |
@@ -48,15 +48,23 @@ void SanitizeProto(power_manager::PowerSupplyProperties* proto) { |
base::string16 GetBatteryTimeAccessibilityString(int hour, int min) { |
DCHECK(hour || min); |
if (hour && !min) { |
- return ui::TimeFormat::TimeDurationLong(base::TimeDelta::FromHours(hour)); |
+ return ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION, |
+ ui::TimeFormat::LENGTH_LONG, |
+ base::TimeDelta::FromHours(hour)); |
} |
if (min && !hour) { |
- return ui::TimeFormat::TimeDurationLong(base::TimeDelta::FromMinutes(min)); |
+ return ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION, |
+ ui::TimeFormat::LENGTH_LONG, |
+ base::TimeDelta::FromMinutes(min)); |
} |
return l10n_util::GetStringFUTF16( |
IDS_ASH_STATUS_TRAY_BATTERY_TIME_ACCESSIBLE, |
- ui::TimeFormat::TimeDurationLong(base::TimeDelta::FromHours(hour)), |
- ui::TimeFormat::TimeDurationLong(base::TimeDelta::FromMinutes(min))); |
+ ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION, |
+ ui::TimeFormat::LENGTH_LONG, |
+ base::TimeDelta::FromHours(hour)), |
+ ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION, |
+ ui::TimeFormat::LENGTH_LONG, |
+ base::TimeDelta::FromMinutes(min))); |
} |
static PowerStatus* g_power_status = NULL; |