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

Unified Diff: components/usb_service/usb_context.cc

Issue 236203019: Move UsbService to its own component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move usb_service component symbols into usb_service namespace Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/usb_service/usb_context.h ('k') | components/usb_service/usb_context_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « components/usb_service/usb_context.h ('k') | components/usb_service/usb_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698