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

Unified Diff: chrome/browser/usb/usb_context.h

Issue 23571007: Fail gracefully when libusb_init fails (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb-safe-exit
Patch Set: Created 7 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
Index: chrome/browser/usb/usb_context.h
diff --git a/chrome/browser/usb/usb_context.h b/chrome/browser/usb/usb_context.h
index 6cdb94694046053c1008dc15bce038ee1ca3dd90..934319d034ab5ae374119ec3a3b0c2279faeb5c2 100644
--- a/chrome/browser/usb/usb_context.h
+++ b/chrome/browser/usb/usb_context.h
@@ -27,7 +27,7 @@ class UsbContext : public base::RefCountedThreadSafe<UsbContext> {
friend class UsbService;
friend class base::RefCountedThreadSafe<UsbContext>;
- UsbContext();
+ explicit UsbContext(PlatformUsbContext context);
virtual ~UsbContext();
private:

Powered by Google App Engine
This is Rietveld 408576698