diff options
author | jennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-08 18:41:12 +0000 |
---|---|---|
committer | jennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-08 18:41:12 +0000 |
commit | c1da02f4940a47c16a5d1c07196ef222924a7d13 (patch) | |
tree | fce61c16bbf0a19a8663471dc3ab5e974109c713 /ash | |
parent | a3fe6b33cf707fc5d486662a1855a4d12e1775b0 (diff) | |
download | chromium_src-c1da02f4940a47c16a5d1c07196ef222924a7d13.zip chromium_src-c1da02f4940a47c16a5d1c07196ef222924a7d13.tar.gz chromium_src-c1da02f4940a47c16a5d1c07196ef222924a7d13.tar.bz2 |
Do not show low battery notification bubble unless battery state is DISCHARGING, which is consistent with the protocol of PowerSupplyProperties.
BUG=238802
R=mukai@chromium.org, sschmitz@chromium.org
Review URL: https://codereview.chromium.org/14935007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198950 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r-- | ash/system/power/tray_power.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/system/power/tray_power.cc b/ash/system/power/tray_power.cc index f7c6a33..4d27337 100644 --- a/ash/system/power/tray_power.cc +++ b/ash/system/power/tray_power.cc @@ -391,7 +391,7 @@ void TrayPower::OnPowerStatusChanged(const PowerSupplyStatus& status) { bool TrayPower::UpdateNotificationState(const PowerSupplyStatus& status) { if (!status.battery_is_present || status.is_calculating_battery_time || - status.line_power_on) { + status.battery_state != PowerSupplyStatus::DISCHARGING) { notification_state_ = NOTIFICATION_NONE; return false; } |