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

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

Issue 21131003: c++11 ud suffix fixes for cros dbus files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/audio/audio_device.cc ('k') | chromeos/network/network_event_log_unittest.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/audio_node.h" 5 #include "chromeos/dbus/audio_node.h"
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 AudioNode::AudioNode() 13 AudioNode::AudioNode()
14 : is_input(false), 14 : is_input(false),
15 id(0), 15 id(0),
16 active(false), 16 active(false),
17 plugged_time(0) { 17 plugged_time(0) {
18 } 18 }
19 19
20 std::string AudioNode::ToString() const { 20 std::string AudioNode::ToString() const {
21 std::string result; 21 std::string result;
22 base::StringAppendF(&result, 22 base::StringAppendF(&result,
23 "is_input = %s ", 23 "is_input = %s ",
24 is_input ? "true" : "false"); 24 is_input ? "true" : "false");
25 base::StringAppendF(&result, 25 base::StringAppendF(&result,
26 "id = 0x%"PRIx64" ", 26 "id = 0x%" PRIx64 " ",
27 id); 27 id);
28 base::StringAppendF(&result, 28 base::StringAppendF(&result,
29 "device_name = %s ", 29 "device_name = %s ",
30 device_name.c_str()); 30 device_name.c_str());
31 base::StringAppendF(&result, 31 base::StringAppendF(&result,
32 "type = %s ", 32 "type = %s ",
33 type.c_str()); 33 type.c_str());
34 base::StringAppendF(&result, 34 base::StringAppendF(&result,
35 "name = %s ", 35 "name = %s ",
36 name.c_str()); 36 name.c_str());
37 base::StringAppendF(&result, 37 base::StringAppendF(&result,
38 "active = %s ", 38 "active = %s ",
39 active ? "true" : "false"); 39 active ? "true" : "false");
40 base::StringAppendF(&result, 40 base::StringAppendF(&result,
41 "plugged_time= %s ", 41 "plugged_time= %s ",
42 base::Uint64ToString(plugged_time).c_str()); 42 base::Uint64ToString(plugged_time).c_str());
43 43
44 return result; 44 return result;
45 } 45 }
46 46
47 } // namespace chromeos 47 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/audio/audio_device.cc ('k') | chromeos/network/network_event_log_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698