Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ash / system / chromeos / power / power_status.cc
index 57210f9..24d29d6 100644 (file)
@@ -189,13 +189,8 @@ bool PowerStatus::IsUsbChargerConnected() const {
 }
 
 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;
+  return proto_.external_power() == power_manager::
+      PowerSupplyProperties_ExternalPower_ORIGINAL_SPRING_CHARGER;
 }
 
 gfx::ImageSkia PowerStatus::GetBatteryImage(IconSet icon_set) const {