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

Unified Diff: device/usb/usb_device_impl.cc

Issue 497363004: Merge components/usb_service into device/usb. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/usb/usb_device_impl.h ('k') | device/usb/usb_error.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_impl.cc
diff --git a/components/usb_service/usb_device_impl.cc b/device/usb/usb_device_impl.cc
similarity index 90%
rename from components/usb_service/usb_device_impl.cc
rename to device/usb/usb_device_impl.cc
index b6d2a12021209214f34e682c1d7bb3ce8a67fe91..03c8ee0b8d74843dd65828c01c0d209d5b957a92 100644
--- a/components/usb_service/usb_device_impl.cc
+++ b/device/usb/usb_device_impl.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/usb_service/usb_device_impl.h"
+#include "device/usb/usb_device_impl.h"
#include <algorithm>
@@ -11,10 +11,10 @@
#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
#include "base/thread_task_runner_handle.h"
-#include "components/usb_service/usb_context.h"
-#include "components/usb_service/usb_device_handle_impl.h"
-#include "components/usb_service/usb_error.h"
-#include "components/usb_service/usb_interface_impl.h"
+#include "device/usb/usb_context.h"
+#include "device/usb/usb_device_handle_impl.h"
+#include "device/usb/usb_error.h"
+#include "device/usb/usb_interface_impl.h"
#include "third_party/libusb/src/libusb/libusb.h"
#if defined(OS_CHROMEOS)
@@ -36,7 +36,7 @@ void OnRequestUsbAccessReplied(
} // namespace
-namespace usb_service {
+namespace device {
UsbDeviceImpl::UsbDeviceImpl(
scoped_refptr<UsbContext> context,
@@ -109,7 +109,7 @@ scoped_refptr<UsbDeviceHandle> UsbDeviceImpl::Open() {
handles_.push_back(device_handle);
return device_handle;
} else {
- VLOG(1) << "Failed to open device: " << ConvertErrorToString(rv);
+ VLOG(1) << "Failed to open device: " << ConvertPlatformUsbErrorToString(rv);
return NULL;
}
}
@@ -137,7 +137,8 @@ scoped_refptr<UsbConfigDescriptor> UsbDeviceImpl::ListInterfaces() {
if (rv == LIBUSB_SUCCESS) {
return new UsbConfigDescriptorImpl(platform_config);
} else {
- VLOG(1) << "Failed to get config descriptor: " << ConvertErrorToString(rv);
+ VLOG(1) << "Failed to get config descriptor: "
+ << ConvertPlatformUsbErrorToString(rv);
return NULL;
}
}
@@ -150,4 +151,4 @@ void UsbDeviceImpl::OnDisconnect() {
(*it)->InternalClose();
}
-} // namespace usb_service
+} // namespace device
« no previous file with comments | « device/usb/usb_device_impl.h ('k') | device/usb/usb_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698