| Index: ash/system/chromeos/power/power_status.cc
|
| diff --git a/ash/system/chromeos/power/power_status.cc b/ash/system/chromeos/power/power_status.cc
|
| index 6b05401891118bd8cf960948af14c78a5d5d37fc..6f4cfe6a4b8a1776d74a33c76edbd706eac4e1b1 100644
|
| --- a/ash/system/chromeos/power/power_status.cc
|
| +++ b/ash/system/chromeos/power/power_status.cc
|
| @@ -188,6 +188,13 @@ bool PowerStatus::IsUsbChargerConnected() const {
|
| power_manager::PowerSupplyProperties_ExternalPower_USB;
|
| }
|
|
|
| +bool PowerStatus::IsOriginalSpringChargerConnected() const {
|
| + // Use the hard coded enum integer value for
|
| + // PowerSupplyProperties_ExternalPower_ORIGINAL_SPRING_CHARGER
|
| + // in purpose of backport compatibility.
|
| + return proto_.external_power() == 3;
|
| +}
|
| +
|
| gfx::ImageSkia PowerStatus::GetBatteryImage(IconSet icon_set) const {
|
| gfx::Image all;
|
| if (IsUsbChargerConnected()) {
|
|
|