summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
authorjennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-08 18:41:12 +0000
committerjennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-08 18:41:12 +0000
commitc1da02f4940a47c16a5d1c07196ef222924a7d13 (patch)
treefce61c16bbf0a19a8663471dc3ab5e974109c713 /ash
parenta3fe6b33cf707fc5d486662a1855a4d12e1775b0 (diff)
downloadchromium_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.cc2
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;
}