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

Unified Diff: ash/system/power/power_supply_status.cc

Issue 9837075: Move power_supply_status.* from src/ash to src/chromeos (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix dependency position Created 8 years, 9 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: 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
deleted file mode 100644
index d1ad5dc9a06f4147d24b503a4e36dafa15974a24..0000000000000000000000000000000000000000
--- a/ash/system/power/power_supply_status.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/system/power/power_supply_status.h"
-
-#include "base/format_macros.h"
-#include "base/stringprintf.h"
-
-namespace 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;
-}
-
-} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698