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

Side by Side Diff: chromeos/dbus/power_supply_status.cc

Issue 16739011: Use a direct include of strings headers in chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/power_policy_controller.cc ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/dbus/power_supply_status.h" 5 #include "chromeos/dbus/power_supply_status.h"
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
11 11
12 PowerSupplyStatus::PowerSupplyStatus() 12 PowerSupplyStatus::PowerSupplyStatus()
13 : line_power_on(false), 13 : line_power_on(false),
14 battery_is_present(false), 14 battery_is_present(false),
15 battery_is_full(false), 15 battery_is_full(false),
16 battery_seconds_to_empty(0), 16 battery_seconds_to_empty(0),
17 battery_seconds_to_full(0), 17 battery_seconds_to_full(0),
18 battery_percentage(0), 18 battery_percentage(0),
(...skipping 23 matching lines...) Expand all
42 base::StringAppendF(&result, 42 base::StringAppendF(&result,
43 "is_calculating_battery_time = %s ", 43 "is_calculating_battery_time = %s ",
44 is_calculating_battery_time ? "true" : "false"); 44 is_calculating_battery_time ? "true" : "false");
45 base::StringAppendF(&result, 45 base::StringAppendF(&result,
46 "battery_state = %d ", 46 "battery_state = %d ",
47 battery_state); 47 battery_state);
48 return result; 48 return result;
49 } 49 }
50 50
51 } // namespace chromeos 51 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/power_policy_controller.cc ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698