|
Check USB device path access when prompting users to select a device.
Use the permission_broker's new CheckPathAccess method to filter
devices presented to the user by whether or not Chrome will be able to
open them later.
By having FakePermissionBrokerClient and the base UsbDevice class always
return true to access requests a number of #if defined(OS_CHROMEOS)
checks can be removed.
//third_party/cros_system_api is rolled from 95c486f3 to aea83430 to
pull in the new kCheckPathAccess definition in service_constants.h.
BUG= 441526
Committed: https://crrev.com/556a9e9fddcc48e9b9650f2ac4a413ce4705efdf
Cr-Commit-Position: refs/heads/master@{#324139}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+242 lines, -141 lines) |
Patch |
 |
M |
chrome/browser/devtools/device/usb/android_usb_browsertest.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/devtools/device/usb/android_usb_device.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/device_permissions_manager_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chromeos/BUILD.gn
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/chromeos.gyp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/fake_permission_broker_client.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chromeos/dbus/fake_permission_broker_client.cc
|
View
|
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
 |
A |
chromeos/dbus/mock_permission_broker_client.h
|
View
|
1
2
3
4
|
1 chunk |
+51 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chromeos/dbus/mock_permission_broker_client.cc
|
View
|
1
2
3
4
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/permission_broker_client.h
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/permission_broker_client.cc
|
View
|
1
2
3
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/network/firewall_hole_unittest.cc
|
View
|
1
2
3
4
|
8 chunks |
+11 lines, -40 lines |
0 comments
|
Download
|
 |
M |
device/usb/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb.gyp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device.h
|
View
|
|
2 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
A |
device/usb/usb_device.cc
|
View
|
1
2
3
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_filter_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_impl.h
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_impl.cc
|
View
|
|
3 chunks |
+29 lines, -28 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/device_permissions_prompt.h
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/device_permissions_prompt.cc
|
View
|
|
5 chunks |
+50 lines, -19 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb/usb_api.cc
|
View
|
1
|
4 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb/usb_apitest.cc
|
View
|
|
3 chunks |
+0 lines, -8 lines |
0 comments
|
Download
|
Total messages: 18 (6 generated)
|