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

Unified Diff: ash/system/chromeos/power/power_status.h

Issue 32443004: ash: Improve low-battery notification thresholds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apply review feedback: update comment Created 7 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 | « no previous file | ash/system/chromeos/power/power_status.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/power/power_status.h
diff --git a/ash/system/chromeos/power/power_status.h b/ash/system/chromeos/power/power_status.h
index a5cf3aef5c9717ff1dc94e44adf8be82b40e0af2..3ac2de9b2110080e1969fc6b809a0a03763cba7c 100644
--- a/ash/system/chromeos/power/power_status.h
+++ b/ash/system/chromeos/power/power_status.h
@@ -62,6 +62,9 @@ class ASH_EXPORT PowerStatus : public chromeos::PowerManagerClient::Observer {
static bool ShouldDisplayBatteryTime(const base::TimeDelta& time);
// Copies the hour and minute components of |time| to |hours| and |minutes|.
+ // The minute component is rounded rather than truncated: a |time| value
+ // corresponding to 92 seconds will produce a |minutes| value of 2, for
+ // example.
static void SplitTimeIntoHoursAndMinutes(const base::TimeDelta& time,
int* hours,
int* minutes);
« no previous file with comments | « no previous file | ash/system/chromeos/power/power_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698