Index: ash/system/power/power_supply_status.cc |
diff --git a/ash/system/power/power_supply_status.cc b/ash/system/power/power_supply_status.cc |
index 1f131708bb5b40d8b30ff602ee926e9aa998eb1b..a61b3a5ef416f7891b9a5475d170e3c33171b310 100644 |
--- a/ash/system/power/power_supply_status.cc |
+++ b/ash/system/power/power_supply_status.cc |
@@ -16,6 +16,8 @@ PowerSupplyStatus::PowerSupplyStatus() |
battery_is_full(false), |
battery_seconds_to_empty(0), |
battery_seconds_to_full(0), |
+ averaged_battery_time_to_empty(0), |
+ averaged_battery_time_to_full(0), |
battery_percentage(0), |
is_calculating_battery_time(false) {} |
@@ -40,6 +42,12 @@ std::string PowerSupplyStatus::ToString() const { |
"battery_seconds_to_full = %"PRId64" ", |
battery_seconds_to_full); |
base::StringAppendF(&result, |
+ "averaged_battery_time_to_empty = %"PRId64" ", |
+ averaged_battery_time_to_empty); |
+ base::StringAppendF(&result, |
+ "averaged_battery_time_to_full = %"PRId64" ", |
+ averaged_battery_time_to_full); |
+ base::StringAppendF(&result, |
"is_calculating_battery_time = %s ", |
is_calculating_battery_time ? "true" : "false"); |
return result; |