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

Side by Side Diff: chromeos/audio/audio_device.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 | « chrome/browser/ui/webui/chromeos/drive_internals_ui.cc ('k') | chromeos/dbus/audio_node.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/audio/audio_device.h" 5 #include "chromeos/audio/audio_device.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 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 active = node.active; 101 active = node.active;
102 plugged_time = node.plugged_time; 102 plugged_time = node.plugged_time;
103 } 103 }
104 104
105 std::string AudioDevice::ToString() const { 105 std::string AudioDevice::ToString() const {
106 std::string result; 106 std::string result;
107 base::StringAppendF(&result, 107 base::StringAppendF(&result,
108 "is_input = %s ", 108 "is_input = %s ",
109 is_input ? "true" : "false"); 109 is_input ? "true" : "false");
110 base::StringAppendF(&result, 110 base::StringAppendF(&result,
111 "id = 0x%"PRIx64" ", 111 "id = 0x%" PRIx64 " ",
112 id); 112 id);
113 base::StringAppendF(&result, 113 base::StringAppendF(&result,
114 "display_name = %s ", 114 "display_name = %s ",
115 display_name.c_str()); 115 display_name.c_str());
116 base::StringAppendF(&result, 116 base::StringAppendF(&result,
117 "type = %s ", 117 "type = %s ",
118 GetTypeString(type).c_str()); 118 GetTypeString(type).c_str());
119 base::StringAppendF(&result, 119 base::StringAppendF(&result,
120 "active = %s ", 120 "active = %s ",
121 active ? "true" : "false"); 121 active ? "true" : "false");
122 base::StringAppendF(&result, 122 base::StringAppendF(&result,
123 "plugged_time= %s ", 123 "plugged_time= %s ",
124 base::Uint64ToString(plugged_time).c_str()); 124 base::Uint64ToString(plugged_time).c_str());
125 125
126 return result; 126 return result;
127 } 127 }
128 128
129 } // namespace chromeos 129 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/drive_internals_ui.cc ('k') | chromeos/dbus/audio_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698