|
Move string descriptor getters from UsbDeviceHandle to UsbDevice.
The common string descriptors: iManufacturer, iProduct and iSerialNumber
should be accessible without opening the device. On Linux these can be
read out of sysfs without having access to the usbfs device node. This
is critical on Chrome OS because otherwise the permission broker needs
to be asked for permission to access the device. On other platforms we
fall back to opening the device temporarily. This will stop being the
case on OS X when libusb is no longer used and on Windows this will be
part of the initial enumeration process.
BUG=
TBR=dgozman@chromium.org
Committed: https://crrev.com/43c5c906400e24aa59382d47a8654c35c2cb9cc6
Cr-Commit-Position: refs/heads/master@{#296802}
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+345 lines, -324 lines) |
Patch |
 |
M |
apps/saved_devices_service.cc
|
View
|
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
apps/saved_devices_service_unittest.cc
|
View
|
|
1 chunk |
+10 lines, -71 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/devtools/device/usb/android_usb_browsertest.cc
|
View
|
|
2 chunks |
+17 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/devtools/device/usb/android_usb_device.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
device/hid/hid_connection_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
device/test/usb_test_gadget.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
device/test/usb_test_gadget_impl.cc
|
View
|
|
5 chunks |
+5 lines, -15 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device.h
|
View
|
1
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_filter_unittest.cc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_handle.h
|
View
|
1
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_handle_impl.h
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_handle_impl.cc
|
View
|
1
2
|
4 chunks |
+124 lines, -184 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_impl.h
|
View
|
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_impl.cc
|
View
|
|
4 chunks |
+138 lines, -0 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_service_unittest.cc
|
View
|
|
1 chunk |
+5 lines, -12 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb/usb_apitest.cc
|
View
|
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb_private/usb_private_api.cc
|
View
|
|
2 chunks |
+3 lines, -10 lines |
0 comments
|
Download
|
Total messages: 11 (3 generated)
|