| Index: components/usb_service/usb_context.cc
|
| diff --git a/chrome/browser/usb/usb_context.cc b/components/usb_service/usb_context.cc
|
| similarity index 95%
|
| rename from chrome/browser/usb/usb_context.cc
|
| rename to components/usb_service/usb_context.cc
|
| index 27971e4e499156da8f114c633fb7146a37333982..723178788f2341a1da85d7466d01f89202a22fb7 100644
|
| --- a/chrome/browser/usb/usb_context.cc
|
| +++ b/components/usb_service/usb_context.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 "chrome/browser/usb/usb_context.h"
|
| +#include "components/usb_service/usb_context.h"
|
|
|
| #include "base/logging.h"
|
| #include "base/synchronization/waitable_event.h"
|
| @@ -10,6 +10,8 @@
|
| #include "third_party/libusb/src/libusb/interrupt.h"
|
| #include "third_party/libusb/src/libusb/libusb.h"
|
|
|
| +namespace usb_service {
|
| +
|
| // The UsbEventHandler works around a design flaw in the libusb interface. There
|
| // is currently no way to signal to libusb that any caller into one of the event
|
| // handler calls should return without handling any events.
|
| @@ -71,3 +73,5 @@ UsbContext::~UsbContext() {
|
| event_handler_ = NULL;
|
| libusb_exit(context_);
|
| }
|
| +
|
| +} // namespace usb_service
|
|
|