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

Issue 1253163005: Try to read BOS and WebUSB descriptors from USB devices. (Closed)

Created:
5 years, 4 months ago by Reilly Grant (use Gerrit)
Modified:
5 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Try to read BOS and WebUSB descriptors from USB devices. When a USB 2.1 or higher device is enumerated this patch attempts to read its binary device object store (BOS) descriptor. If a WebUSB platform capability descriptor is found the WebUSB landing page and allowed origin descriptors are requested. These requests should be safe as the USB 3.0 specification requires that devices announcing support for version 2.1 (which is just USB 3.0 for non-super-speed devices) or higher must implement the BOS descriptor request. BUG=492204 Committed: https://crrev.com/6eb7a8ae9630f17bcb0673c05d983577b8652862 Cr-Commit-Position: refs/heads/master@{#342028}

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : Resolved Ken's nits. #

Patch Set 4 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -101 lines) Patch
M device/usb/usb_device.h View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download
M device/usb/usb_device.cc View 1 chunk +1 line, -0 lines 0 comments Download
M device/usb/usb_device_impl.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M device/usb/usb_service_impl.cc View 1 2 3 7 chunks +288 lines, -101 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Reilly Grant (use Gerrit)
Please take a look.
5 years, 4 months ago (2015-08-03 23:56:47 UTC) #3
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/1253163005/diff/1/device/usb/usb_service_impl.cc File device/usb/usb_service_impl.cc (right): https://codereview.chromium.org/1253163005/diff/1/device/usb/usb_service_impl.cc#newcode53 device/usb/usb_service_impl.cc:53: const int kControlTransferTimeout = 60000; /* 1 minute ...
5 years, 4 months ago (2015-08-04 01:15:01 UTC) #4
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1253163005/diff/1/device/usb/usb_service_impl.cc File device/usb/usb_service_impl.cc (right): https://codereview.chromium.org/1253163005/diff/1/device/usb/usb_service_impl.cc#newcode53 device/usb/usb_service_impl.cc:53: const int kControlTransferTimeout = 60000; /* 1 minute */ ...
5 years, 4 months ago (2015-08-04 20:48:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1253163005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1253163005/40001
5 years, 4 months ago (2015-08-05 20:29:17 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_arm_compile on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_arm_compile/builds/29470) linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 4 months ago (2015-08-05 20:33:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1253163005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1253163005/60001
5 years, 4 months ago (2015-08-05 22:53:43 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 4 months ago (2015-08-06 00:34:20 UTC) #14
commit-bot: I haz the power
5 years, 4 months ago (2015-08-06 00:34:53 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6eb7a8ae9630f17bcb0673c05d983577b8652862
Cr-Commit-Position: refs/heads/master@{#342028}

Powered by Google App Engine
This is Rietveld 408576698