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

Unified Diff: chrome/browser/chromeos/dbus/power_manager_client.cc

Issue 8555018: Increased battery time to empty sent by power manager stub impl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a Created 9 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/dbus/power_manager_client.cc
diff --git a/chrome/browser/chromeos/dbus/power_manager_client.cc b/chrome/browser/chromeos/dbus/power_manager_client.cc
index dc9761d64cc6623ba667637f98eaf099ba5efada..f31ee8aa4f1d634b33378861628ad4556a6ad202 100644
--- a/chrome/browser/chromeos/dbus/power_manager_client.cc
+++ b/chrome/browser/chromeos/dbus/power_manager_client.cc
@@ -311,8 +311,10 @@ class PowerManagerClientStubImpl : public PowerManagerClient {
status.line_power_on = !discharging_;
status.battery_is_present = true;
status.battery_percentage = battery_percentage_;
+ // We don't want to go to low because we don't want a low battery
+ // notification to pop up.
status.battery_seconds_to_empty =
- std::max(1, battery_percentage_ * 180 / 100);
+ std::max(16, battery_percentage_ * 180 / 100);
satorux1 2011/11/14 22:03:05 Why did we end up showing the low battery balloon
satorux1 2011/11/14 22:10:41 FWIW, it used to be 3 hours, but changed to 180 se
status.battery_seconds_to_full =
std::max(static_cast<int64>(1), 180 - status.battery_seconds_to_empty);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698