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

Unified Diff: chrome/common/time_format.h

Issue 11272035: Add FORMAT_REMAINING_LONG in TimeFormat class to support formatting remaining time in long minute f… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/ui/ash/chrome_shell_delegate.cc ('k') | chrome/common/time_format.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/time_format.h
diff --git a/chrome/common/time_format.h b/chrome/common/time_format.h
index fc45e18fc70f7c9985c38ad463984e3c6f051e03..dedfc37697ffd171923825dc5b1138371b01c55e 100644
--- a/chrome/common/time_format.h
+++ b/chrome/common/time_format.h
@@ -27,6 +27,11 @@ class TimeFormat {
// Returns times in remaining-format: "3 mins left", "2 days left".
static string16 TimeRemaining(const base::TimeDelta& delta);
+ // Returns times in remaining-long-format: "3 minutes left", "2 days left".
+ // Currently, this only affects the minutes in long format, the rest
+ // of the time units are formatted the same as TimeRemaining does.
+ static string16 TimeRemainingLong(const base::TimeDelta& delta);
+
// Returns times in short-format: "3 mins", "2 days".
static string16 TimeRemainingShort(const base::TimeDelta& delta);
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.cc ('k') | chrome/common/time_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698