OLD | NEW |
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/stringprintf.h" | |
9 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.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 |
(...skipping 18 matching lines...) Expand all Loading... |
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 |
OLD | NEW |