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); |