commit | d69ab30242b326e6a1420f4b55d694e1167af3c9 | [log] [tgz] |
---|---|---|
author | Ovidio Henriquez <odejesush@chromium.org> | Thu Oct 04 16:55:24 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Oct 04 16:55:24 2018 |
tree | 5636efc82e7707f0daadccf0152593b2ce11f1f4 | |
parent | 169cb74055e8c3372f8809d455d480963af30623 [diff] |
Implement UsbPolicyAllowedDevices class This change creates a new UsbPolicyAllowedDevices class that reads the preference value for kManagedWebUsbAllowedDevicesForUrls and creates a mapping of the tuple (vendor_id, product_id) to a set of URL patterns. The class also provides a method to check if a pair of requesting and embedding origins are allowed to access a device with vendor_id and product_id. The design document for this feature can be found at: https://docs.google.com/document/d/1MPvsrWiVD_jAC8ELyk8njFpy6j1thfVU5aWT3TCWE8w Bug: 854329 Change-Id: I014849be2ef4779e45c28c6699ff34022d3e9b89 Reviewed-on: https://chromium-review.googlesource.com/c/1250060 Commit-Queue: Ovidio Henriquez <odejesush@chromium.org> Reviewed-by: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#596710}
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 .