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

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

Issue 1870833003: chromeos: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « chromeos/dbus/audio_node.h ('k') | chromeos/disks/disk_mount_manager.h » ('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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 18 matching lines...) Expand all
29 uint64_t plugged_time) 29 uint64_t plugged_time)
30 : is_input(is_input), 30 : is_input(is_input),
31 id(id), 31 id(id),
32 stable_device_id(stable_device_id), 32 stable_device_id(stable_device_id),
33 device_name(device_name), 33 device_name(device_name),
34 type(type), 34 type(type),
35 name(name), 35 name(name),
36 active(active), 36 active(active),
37 plugged_time(plugged_time) {} 37 plugged_time(plugged_time) {}
38 38
39 AudioNode::AudioNode(const AudioNode& other) = default;
40
39 AudioNode::~AudioNode() {} 41 AudioNode::~AudioNode() {}
40 42
41 std::string AudioNode::ToString() const { 43 std::string AudioNode::ToString() const {
42 std::string result; 44 std::string result;
43 base::StringAppendF(&result, 45 base::StringAppendF(&result,
44 "is_input = %s ", 46 "is_input = %s ",
45 is_input ? "true" : "false"); 47 is_input ? "true" : "false");
46 base::StringAppendF(&result, 48 base::StringAppendF(&result,
47 "id = 0x%" PRIx64 " ", 49 "id = 0x%" PRIx64 " ",
48 id); 50 id);
(...skipping 10 matching lines...) Expand all
59 "active = %s ", 61 "active = %s ",
60 active ? "true" : "false"); 62 active ? "true" : "false");
61 base::StringAppendF(&result, 63 base::StringAppendF(&result,
62 "plugged_time= %s ", 64 "plugged_time= %s ",
63 base::Uint64ToString(plugged_time).c_str()); 65 base::Uint64ToString(plugged_time).c_str());
64 66
65 return result; 67 return result;
66 } 68 }
67 69
68 } // namespace chromeos 70 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/audio_node.h ('k') | chromeos/disks/disk_mount_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698