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

Unified Diff: chrome/browser/chromeos/cros/power_library.h

Issue 8402020: chromeos: initializer for power supply status struct (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed explicit initializations using {} Created 9 years, 2 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 | « no previous file | chrome/browser/chromeos/cros/power_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/power_library.h
diff --git a/chrome/browser/chromeos/cros/power_library.h b/chrome/browser/chromeos/cros/power_library.h
index dfb0ad445b0d4de4d18462b1fd8fb8c0b617048f..e6ef46d0935746bf0869be3a7bcb9ba4dca79077 100644
--- a/chrome/browser/chromeos/cros/power_library.h
+++ b/chrome/browser/chromeos/cros/power_library.h
@@ -29,6 +29,13 @@ struct PowerSupplyStatus {
int64 battery_seconds_to_full;
double battery_percentage;
+
+ 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) {}
};
// This interface defines interaction with the ChromeOS power library APIs.
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/power_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698