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 "components/usb_service/usb_error.h" | 5 #include "device/usb/usb_error.h" |
6 | 6 |
7 #include "third_party/libusb/src/libusb/libusb.h" | 7 #include "third_party/libusb/src/libusb/libusb.h" |
8 | 8 |
9 namespace usb_service { | 9 namespace device { |
10 | 10 |
11 std::string ConvertErrorToString(int errcode) { | 11 std::string ConvertPlatformUsbErrorToString(int errcode) { |
12 return libusb_strerror(static_cast<libusb_error>(errcode)); | 12 return libusb_strerror(static_cast<libusb_error>(errcode)); |
13 } | 13 } |
14 | 14 |
15 } // namespace usb_service; | 15 } // namespace device |
OLD | NEW |