Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1053)

Issue 2611773004: Allow top-level frames to request any USB device. (Closed)

Created:
3 years, 11 months ago by Reilly Grant (use Gerrit)
Modified:
3 years, 11 months ago
Reviewers:
scheib, Peter Kasting
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow top-level frames to request any USB device. This patch changes the rules for WebUSB so that a top level frame can request access to any USB device, while embedded frames must have an origin matching the allowed origins structure read from the device. Integration tests for WebUSB are added which exercise this. BUG=492204 Review-Url: https://codereview.chromium.org/2611773004 Cr-Commit-Position: refs/heads/master@{#442105} Committed: https://chromium.googlesource.com/chromium/src/+/d890f99cb3e60ad71c087b4d9a628c0c400aa196

Patch Set 1 #

Patch Set 2 : Fix unit_tests compile. #

Total comments: 1

Patch Set 3 : Fix ExtensionPrinterHandlerTest.GetUsbPrinters #

Patch Set 4 : Add comments explaining how the mock devices are being used. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -49 lines) Patch
M chrome/browser/ui/startup/bad_flags_prompt.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/extension_printer_handler_unittest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/usb/usb_browsertest.cc View 1 2 3 1 chunk +201 lines, -0 lines 0 comments Download
M chrome/browser/usb/usb_chooser_controller.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/usb/usb_chooser_controller.cc View 6 chunks +23 lines, -14 lines 0 comments Download
M chrome/browser/usb/usb_chooser_controller_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/usb/web_usb_chooser_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/usb/web_usb_permission_provider.cc View 7 chunks +38 lines, -20 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/test/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M device/usb/mock_usb_service.cc View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 29 (19 generated)
Reilly Grant (use Gerrit)
pkasting@, please review chrome/browser/ui/startup/bad_flags_prompt.cc scheib@, please review everything else.
3 years, 11 months ago (2017-01-03 23:58:49 UTC) #2
Reilly Grant (use Gerrit)
Fix unit_tests compile.
3 years, 11 months ago (2017-01-04 00:48:03 UTC) #7
scheib
LGTM, comments suggested: https://codereview.chromium.org/2611773004/diff/20001/chrome/browser/usb/usb_browsertest.cc File chrome/browser/usb/usb_browsertest.cc (right): https://codereview.chromium.org/2611773004/diff/20001/chrome/browser/usb/usb_browsertest.cc#newcode101 chrome/browser/usb/usb_browsertest.cc:101: device_client_.reset(new MockDeviceClient()); Add some comments here, ...
3 years, 11 months ago (2017-01-04 19:06:03 UTC) #12
Reilly Grant (use Gerrit)
Fix ExtensionPrinterHandlerTest.GetUsbPrinters
3 years, 11 months ago (2017-01-04 21:03:44 UTC) #13
Reilly Grant (use Gerrit)
Add comments explaining how the mock devices are being used.
3 years, 11 months ago (2017-01-04 21:16:36 UTC) #14
Peter Kasting
LGTM
3 years, 11 months ago (2017-01-06 02:28:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2611773004/60001
3 years, 11 months ago (2017-01-06 16:49:33 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/359212)
3 years, 11 months ago (2017-01-06 18:40:51 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2611773004/60001
3 years, 11 months ago (2017-01-07 00:13:40 UTC) #26
commit-bot: I haz the power
3 years, 11 months ago (2017-01-07 00:18:58 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/d890f99cb3e60ad71c087b4d9a62...

Powered by Google App Engine
This is Rietveld 408576698