Index: chrome/browser/chromeos/dbus/power_manager_client.cc |
diff --git a/chrome/browser/chromeos/dbus/power_manager_client.cc b/chrome/browser/chromeos/dbus/power_manager_client.cc |
index 8899b39b2d3b42d0a38aa43ccd24933faf6a481c..d089e9d2488a8622994f36768293d872dd94ee3b 100644 |
--- a/chrome/browser/chromeos/dbus/power_manager_client.cc |
+++ b/chrome/browser/chromeos/dbus/power_manager_client.cc |
@@ -24,40 +24,6 @@ |
namespace chromeos { |
-#if !defined(USE_ASH) |
-PowerSupplyStatus::PowerSupplyStatus() |
- : line_power_on(false), |
- battery_is_present(false), |
- battery_is_full(false), |
- battery_seconds_to_empty(0), |
- battery_seconds_to_full(0), |
- battery_percentage(0) { |
-} |
- |
-std::string PowerSupplyStatus::ToString() const { |
- std::string result; |
- base::StringAppendF(&result, |
- "line_power_on = %s ", |
- line_power_on ? "true" : "false"); |
- base::StringAppendF(&result, |
- "battery_is_present = %s ", |
- battery_is_present ? "true" : "false"); |
- base::StringAppendF(&result, |
- "battery_is_full = %s ", |
- battery_is_full ? "true" : "false"); |
- base::StringAppendF(&result, |
- "battery_percentage = %f ", |
- battery_percentage); |
- base::StringAppendF(&result, |
- "battery_seconds_to_empty = %"PRId64" ", |
- battery_seconds_to_empty); |
- base::StringAppendF(&result, |
- "battery_seconds_to_full = %"PRId64" ", |
- battery_seconds_to_full); |
- return result; |
-} |
-#endif // !defined(USE_ASH) |
- |
// The PowerManagerClient implementation used in production. |
class PowerManagerClientImpl : public PowerManagerClient { |
public: |