|
Add getUserSelectedDevices to the USB extensions API.
chrome.usb.getUserSelectedDevices allows an app to prompt the user for
one or more USB devices for it to access. This is an alternative to
statically declaring the list of devices an app can access in the
application manifest. This is useful for device classes such as
ADB-enabled Android devices which may have a great number of vendor and
product ID pairs but all match a well-known interface protocol.
If a selected device has a serial number then the app can retain access
to it until explicitly revoked (as is the case for most Android phones)
while access to a device without a serial number is revoked when the app
is unloaded or the device is disconnected.
BUG= 346953
Committed: https://crrev.com/042073be6f85951049a6a3a4f84499ab85109566
Cr-Commit-Position: refs/heads/master@{#300141}
Total comments: 8
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+229 lines, -98 lines) |
Patch |
|
A |
chrome/browser/extensions/api/chrome_device_permissions_prompt.h
|
View
|
1
2
3
4
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/chrome_extensions_api_client.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/chrome_extensions_api_client.cc
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/extensions/device_permissions_dialog_controller.mm
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -16 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -17 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_browser_extensions.gypi
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
extensions/browser/BUILD.gn
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
extensions/browser/api/device_permissions_prompt.h
|
View
|
1
2
3
4
|
1 chunk |
+12 lines, -13 lines |
0 comments
|
Download
|
|
M |
extensions/browser/api/device_permissions_prompt.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
extensions/browser/api/extensions_api_client.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
extensions/browser/api/extensions_api_client.cc
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
extensions/browser/api/usb/usb_api.h
|
View
|
1
2
|
4 chunks |
+26 lines, -9 lines |
0 comments
|
Download
|
|
M |
extensions/browser/api/usb/usb_api.cc
|
View
|
1
2
3
4
|
13 chunks |
+109 lines, -39 lines |
0 comments
|
Download
|
|
M |
extensions/browser/extension_function_histogram_value.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
extensions/common/api/_api_features.json
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
extensions/common/api/usb.idl
|
View
|
1
|
3 chunks |
+19 lines, -1 line |
0 comments
|
Download
|
|
M |
tools/metrics/histograms/histograms.xml
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 21 (6 generated)
|