From c1da02f4940a47c16a5d1c07196ef222924a7d13 Mon Sep 17 00:00:00 2001 From: "jennyz@chromium.org" Date: Wed, 8 May 2013 18:41:12 +0000 Subject: 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 --- ash/system/power/tray_power.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ash') 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; } -- cgit v1.1