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

Issue 1256113006: Add utilities to parse WebUSB device descriptors. (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

Add utilities to parse WebUSB device descriptors. These structs and methods will be used to parse the WebUSB descriptors on compatible devices as part of the enumeration process. Tests are provided for example descriptors and a number of various corrupt cases. BUG=492204 Committed: https://crrev.com/d80d79b21fbad4eb834f154660dcdca3720f5622 Cr-Commit-Position: refs/heads/master@{#341959}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add DCHECKs and empty string test. #

Total comments: 4

Patch Set 3 : Comment tweaks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+794 lines, -0 lines) Patch
M device/device_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M device/usb/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M device/usb/usb.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A device/usb/webusb_descriptors.h View 1 chunk +54 lines, -0 lines 0 comments Download
A device/usb/webusb_descriptors.cc View 1 2 1 chunk +290 lines, -0 lines 0 comments Download
A device/usb/webusb_descriptors_unittest.cc View 1 1 chunk +445 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
Reilly Grant (use Gerrit)
Please take a look.
5 years, 4 months ago (2015-08-03 23:22:30 UTC) #2
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1256113006/diff/1/device/usb/webusb_descriptors.cc File device/usb/webusb_descriptors.cc (right): https://codereview.chromium.org/1256113006/diff/1/device/usb/webusb_descriptors.cc#newcode38 device/usb/webusb_descriptors.cc:38: DCHECK_EQ((*it)[1], kUrlDescriptorType); If it is passed as 1 short ...
5 years, 4 months ago (2015-08-04 00:59:02 UTC) #3
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1256113006/diff/1/device/usb/webusb_descriptors.cc File device/usb/webusb_descriptors.cc (right): https://codereview.chromium.org/1256113006/diff/1/device/usb/webusb_descriptors.cc#newcode38 device/usb/webusb_descriptors.cc:38: DCHECK_EQ((*it)[1], kUrlDescriptorType); On 2015/08/04 00:59:02, Ken Rockot wrote: > ...
5 years, 4 months ago (2015-08-04 01:05:20 UTC) #4
Reilly Grant (use Gerrit)
Please take another look.
5 years, 4 months ago (2015-08-04 20:47:31 UTC) #5
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/1256113006/diff/20001/device/usb/webusb_descriptors.cc File device/usb/webusb_descriptors.cc (right): https://codereview.chromium.org/1256113006/diff/20001/device/usb/webusb_descriptors.cc#newcode34 device/usb/webusb_descriptors.cc:34: std::vector<uint8_t>::const_iterator* it, in these functions |it| is an ...
5 years, 4 months ago (2015-08-05 14:16:56 UTC) #6
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1256113006/diff/20001/device/usb/webusb_descriptors.cc File device/usb/webusb_descriptors.cc (right): https://codereview.chromium.org/1256113006/diff/20001/device/usb/webusb_descriptors.cc#newcode34 device/usb/webusb_descriptors.cc:34: std::vector<uint8_t>::const_iterator* it, On 2015/08/05 14:16:56, Ken Rockot wrote: > ...
5 years, 4 months ago (2015-08-05 16:31:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256113006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256113006/40001
5 years, 4 months ago (2015-08-05 16:34:52 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/86855)
5 years, 4 months ago (2015-08-05 17:05:15 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256113006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256113006/40001
5 years, 4 months ago (2015-08-05 18:11:13 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-05 20:27:19 UTC) #15
commit-bot: I haz the power
5 years, 4 months ago (2015-08-05 20:28:04 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d80d79b21fbad4eb834f154660dcdca3720f5622
Cr-Commit-Position: refs/heads/master@{#341959}

Powered by Google App Engine
This is Rietveld 408576698