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

Unified Diff: device/usb/usb_service_impl.cc

Issue 1857033002: Include USB device version in chrome.usb.Device fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: device/usb/usb_service_impl.cc
diff --git a/device/usb/usb_service_impl.cc b/device/usb/usb_service_impl.cc
index b72ce52918e732bc4d3927a49c666ca08f187dad..5f117218d2f75d3f6638d84c96621fb63e69a5a3 100644
--- a/device/usb/usb_service_impl.cc
+++ b/device/usb/usb_service_impl.cc
@@ -484,9 +484,8 @@ void UsbServiceImpl::EnumerateDevice(PlatformUsbDevice platform_device,
libusb_device_descriptor descriptor;
int rv = libusb_get_device_descriptor(platform_device, &descriptor);
if (rv == LIBUSB_SUCCESS) {
- scoped_refptr<UsbDeviceImpl> device(
- new UsbDeviceImpl(context_, platform_device, descriptor.idVendor,
- descriptor.idProduct, blocking_task_runner_));
+ scoped_refptr<UsbDeviceImpl> device(new UsbDeviceImpl(
+ context_, platform_device, descriptor, blocking_task_runner_));
base::Closure add_device =
base::Bind(&UsbServiceImpl::AddDevice, weak_factory_.GetWeakPtr(),

Powered by Google App Engine
This is Rietveld 408576698