Chromium Code Reviews| Index: chrome/browser/usb/usb_service.cc |
| diff --git a/chrome/browser/usb/usb_service.cc b/chrome/browser/usb/usb_service.cc |
| index ad172d88508b2ac06070b809a34f40d7d85ae25f..65e9ced62c7a2e194362a7bd1698b7d67189f262 100644 |
| --- a/chrome/browser/usb/usb_service.cc |
| +++ b/chrome/browser/usb/usb_service.cc |
| @@ -8,7 +8,7 @@ |
| #include "base/bind_helpers.h" |
| #include "base/stl_util.h" |
| #include "chrome/browser/usb/usb_device.h" |
| -#include "third_party/libusb/libusb/libusb.h" |
| +#include "third_party/libusb/libusb.h" |
| UsbService::UsbService() : running_(true), thread_("UsbThread") { |
| libusb_init(&context_); |
| @@ -75,7 +75,10 @@ void UsbService::PostHandleEventTask() { |
| } |
| void UsbService::HandleEvent() { |
| - libusb_handle_events_completed(context_, NULL); |
| + // TODO(gdk): Once there is a reasonable expectation that platforms will use |
|
Paweł Hajdan Jr.
2012/05/10 06:36:15
Note: there is. Gentoo Linux doesn't even have any
Garret Kelly
2012/05/10 17:44:01
I'll leave the older call for compatibility's sake
|
| + // libusb >= 1.0.9 this should be changed to handle_events_completed, as the |
| + // use of handle_events is deprecated. |
| + libusb_handle_events(context_); |
| if (running_) { |
| PostHandleEventTask(); |
| } |