Index: chrome/browser/usb/usb_context.cc |
diff --git a/chrome/browser/usb/usb_context.cc b/chrome/browser/usb/usb_context.cc |
index f4e55badd39dde05b6a7235b3c47a4653b3fa1d5..a09c2f69a6bb22dff919cb032627158750f647d8 100644 |
--- a/chrome/browser/usb/usb_context.cc |
+++ b/chrome/browser/usb/usb_context.cc |
@@ -60,9 +60,8 @@ void UsbContext::UsbEventHandler::ThreadMain() { |
VLOG(1) << "UsbEventHandler shutting down."; |
} |
-UsbContext::UsbContext() : context_(NULL) { |
+UsbContext::UsbContext(PlatformUsbContext context) : context_(context) { |
DCHECK(thread_checker_.CalledOnValidThread()); |
- CHECK_EQ(0, libusb_init(&context_)) << "Cannot initialize libusb"; |
event_handler_ = new UsbEventHandler(context_); |
} |