commit | 9c8057d4229e010e97efc03e6e20efff3ee95690 | [log] [tgz] |
---|---|---|
author | Reilly Grant <[email protected]> | Sat Mar 31 00:40:57 2018 |
committer | Commit Bot <[email protected]> | Sat Mar 31 00:40:57 2018 |
tree | 586a246cba5717e2039744242ba7cfd1a7a9a489 | |
parent | 0a4382cf0466f8ae431ac4af3e1fe24686be53e8 [diff] |
Block the WebUSB chooser when the guard permission is 'block' This change adds logic to the WebUSB device chooser (on desktop) so that when the WebUSB guard permission is set to 'block' the chooser will be automatically dismissed as if the user had not selected any devices. This matches the behavior of the Web Bluetooth chooser and its guard permission. To test this change the WebUsbChooserService class has been refactored so that its shared logic can be reused by tests. A follow-up patch will make WebUsbChooserServiceAndroid also inherit from this class. Bug: 771703 Change-Id: I3f2cc6e96a9ebf039bc15d396d16eb4a0766007e Reviewed-on: https://chromium-review.googlesource.com/987327 Commit-Queue: Reilly Grant <[email protected]> Reviewed-by: Jun Cai <[email protected]> Cr-Commit-Position: refs/heads/master@{#547338}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .