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

Unified Diff: ash/display/resolution_notification_controller.cc

Issue 147443007: Add support for localized time strings with two units, eg. "2 hours 17 minutes" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Bartosz' comments Created 6 years, 10 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 | « no previous file | ash/system/chromeos/power/power_status.cc » ('j') | ui/base/l10n/formatter.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/resolution_notification_controller.cc
diff --git a/ash/display/resolution_notification_controller.cc b/ash/display/resolution_notification_controller.cc
index 5f924e6eb7761698643fe2dd8a3784e117d75e11..497290accc9cf86fe8767cf74178ac0276b7c2a6 100644
--- a/ash/display/resolution_notification_controller.cc
+++ b/ash/display/resolution_notification_controller.cc
@@ -212,7 +212,8 @@ void ResolutionNotificationController::CreateOrUpdateNotification(
l10n_util::GetStringUTF16(IDS_ASH_DISPLAY_RESOLUTION_CHANGE_ACCEPT)));
timeout_message = l10n_util::GetStringFUTF16(
IDS_ASH_DISPLAY_RESOLUTION_TIMEOUT,
- ui::TimeFormat::TimeDurationLong(
+ ui::TimeFormat::Simple(
+ ui::TimeFormat::kDuration, ui::TimeFormat::kLong,
base::TimeDelta::FromSeconds(change_info_->timeout_count)));
}
data.buttons.push_back(message_center::ButtonInfo(
« no previous file with comments | « no previous file | ash/system/chromeos/power/power_status.cc » ('j') | ui/base/l10n/formatter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698