OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "device/serial/serial_device_enumerator_mac.h" | 5 #include "device/serial/serial_device_enumerator_mac.h" |
6 | 6 |
7 #include "base/file_util.h" | |
8 #include "base/files/file_enumerator.h" | 7 #include "base/files/file_enumerator.h" |
9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 | 12 |
13 namespace device { | 13 namespace device { |
14 | 14 |
15 // static | 15 // static |
16 scoped_ptr<SerialDeviceEnumerator> SerialDeviceEnumerator::Create() { | 16 scoped_ptr<SerialDeviceEnumerator> SerialDeviceEnumerator::Create() { |
17 return scoped_ptr<SerialDeviceEnumerator>(new SerialDeviceEnumeratorMac()); | 17 return scoped_ptr<SerialDeviceEnumerator>(new SerialDeviceEnumeratorMac()); |
18 } | 18 } |
19 | 19 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 info->path = next_device; | 51 info->path = next_device; |
52 devices.push_back(info.Pass()); | 52 devices.push_back(info.Pass()); |
53 break; | 53 break; |
54 } | 54 } |
55 } | 55 } |
56 } while (true); | 56 } while (true); |
57 return devices.Pass(); | 57 return devices.Pass(); |
58 } | 58 } |
59 | 59 |
60 } // namespace device | 60 } // namespace device |
OLD | NEW |