Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: chromeos/dbus/power_manager_client.cc

Issue 10108028: Extract the averaged time values from incomming protobuf (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/power/power_supply_status.cc ('k') | chromeos/dbus/power_supply_status.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/power_manager_client.cc
diff --git a/chromeos/dbus/power_manager_client.cc b/chromeos/dbus/power_manager_client.cc
index 010b45c1e9e16ae0b2ba5edaa7794fe539c1df46..3cbc119b7fdc6d9e599f48b9ce6f0d7cdd51481c 100644
--- a/chromeos/dbus/power_manager_client.cc
+++ b/chromeos/dbus/power_manager_client.cc
@@ -353,6 +353,10 @@ class PowerManagerClientImpl : public PowerManagerClient {
status.line_power_on = protobuf.line_power_on();
status.battery_seconds_to_empty = protobuf.battery_time_to_empty();
status.battery_seconds_to_full = protobuf.battery_time_to_full();
+ status.averaged_battery_time_to_empty =
+ protobuf.averaged_battery_time_to_empty();
+ status.averaged_battery_time_to_full =
+ protobuf.averaged_battery_time_to_full();
status.battery_percentage = protobuf.battery_percentage();
status.battery_is_present = protobuf.battery_is_present();
status.battery_is_full = protobuf.battery_is_charged();
« no previous file with comments | « ash/system/power/power_supply_status.cc ('k') | chromeos/dbus/power_supply_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698