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

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

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
Index: chrome/browser/chromeos/cros/power_library.cc
diff --git a/chrome/browser/chromeos/cros/power_library.cc b/chrome/browser/chromeos/cros/power_library.cc
index 17e675584c9e9e8816ca8f2563c61b31e08d6bde..cb675c9425aa98c2762e4c761d4f7dbde124ea1d 100644
--- a/chrome/browser/chromeos/cros/power_library.cc
+++ b/chrome/browser/chromeos/cros/power_library.cc
@@ -112,7 +112,7 @@ class PowerLibraryImpl : public PowerLibrary {
void* object, const chromeos::PowerStatus& power_status) {
// TODO(sque): this is a temporary copy-over from libcros. Soon libcros
// will be removed and this will not be necessary.
- PowerSupplyStatus status = {};
+ PowerSupplyStatus status;
status.line_power_on = power_status.line_power_on;
status.battery_is_present = power_status.battery_is_present;
status.battery_is_full =
@@ -227,7 +227,7 @@ class PowerLibraryStubImpl : public PowerLibrary {
}
battery_percentage_ += (discharging_ ? -1 : 1);
- PowerSupplyStatus status = {}; // Zero-clear the status.
+ PowerSupplyStatus status;
status.line_power_on = !discharging_;
status.battery_is_present = true;
status.battery_percentage = battery_percentage_;
« no previous file with comments | « chrome/browser/chromeos/cros/power_library.h ('k') | chrome/browser/chromeos/status/power_menu_button_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698