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..a014387b3058894fbab9956827ed84d20d8a99ad 100644 |
--- a/ash/system/chromeos/power/power_status.cc |
+++ b/ash/system/chromeos/power/power_status.cc |
@@ -188,6 +188,16 @@ 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. |
+ // TODO(jennyz): change this to use |
+ // PowerSupplyProperties_ExternalPower_ORIGINAL_SPRING_CHARGER on trunk |
+ // after the change has been merged. |
+ return proto_.external_power() == 3; |
+} |
+ |
gfx::ImageSkia PowerStatus::GetBatteryImage(IconSet icon_set) const { |
gfx::Image all; |
if (IsUsbChargerConnected()) { |