|
Add support for sending a USB SET_CONFIGURATION request.
Some devices may have multiple configuration options, and Windows and
OS X do not always automatically select a device configuration when a
device is enumerated. This new function allows a Chrome App to select a
device configuration once the device is opened.
From a security and isolation perspective this function is no more
dangerous than chrome.usb.resetDevice.
BUG= 443213
Committed: https://crrev.com/13cf2cfcb5325ecfff98ee8ccde723f22e606d22
Cr-Commit-Position: refs/heads/master@{#310591}
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+440 lines, -321 lines) |
Patch |
 |
M |
chrome/browser/devtools/device/usb/android_usb_browsertest.cc
|
View
|
1
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/devtools/device/usb/android_usb_device.cc
|
View
|
|
3 chunks |
+29 lines, -29 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/device_permissions_manager_unittest.cc
|
View
|
1
2
|
6 chunks |
+97 lines, -96 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device.h
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_filter.cc
|
View
|
|
1 chunk |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_filter_unittest.cc
|
View
|
|
2 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_handle.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_handle_impl.h
|
View
|
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_handle_impl.cc
|
View
|
|
4 chunks |
+37 lines, -18 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_impl.h
|
View
|
|
3 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_impl.cc
|
View
|
1
|
4 chunks |
+69 lines, -79 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb/usb_api.h
|
View
|
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb/usb_api.cc
|
View
|
1
2
|
7 chunks |
+57 lines, -19 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb/usb_apitest.cc
|
View
|
|
7 chunks |
+45 lines, -44 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/extension_function_histogram_value.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/common/api/_api_features.json
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/common/api/usb.idl
|
View
|
1
2
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/test/data/api_test/usb/list_interfaces/test.js
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/test/data/api_test/usb/reset_device/test.js
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
extensions/test/data/api_test/usb/set_configuration/manifest.json
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
extensions/test/data/api_test/usb/set_configuration/test.js
|
View
|
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/test/data/api_test/usb/transfer_failure/test.js
|
View
|
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/metrics/histograms/histograms.xml
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 25 (13 generated)
|