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

Unified Diff: chrome/browser/sync/profile_sync_service.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: More cleanup and documentation 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
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 0e9a25f840999030f124205cc973eecf45653eb6..13839e78078a9cb588a281dd27e6413ddd1cd911 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -1591,7 +1591,8 @@ base::string16 ProfileSyncService::GetLastSyncedTimeString() const {
if (last_synced < base::TimeDelta::FromMinutes(1))
return l10n_util::GetStringUTF16(IDS_SYNC_TIME_JUST_NOW);
- return ui::TimeFormat::TimeElapsed(last_synced);
+ return ui::TimeFormat::Simple(ui::TimeFormat::kElapsed,
+ ui::TimeFormat::kShort, last_synced);
}
void ProfileSyncService::UpdateSelectedTypesHistogram(

Powered by Google App Engine
This is Rietveld 408576698