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

Issue 1568673002: Parse USB interface association descriptors. (Closed)

Created:
4 years, 11 months ago by Reilly Grant (use Gerrit)
Modified:
4 years, 10 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

Parse USB interface association descriptors. USB interface association descriptors are used to combine multiple interfaces into a single functional group. This patch adds support for parsing them out of the |extra_data| field left by libusb's parsing of configuration, interface and endpoint descriptors. The resulting association is then represented by setting the |first_interface| field of each interface in a function to the |interface_number| of the first interface in the function. WebUSB will use these associations to set permissions for an entire function with a single descriptor. BUG=492204 Committed: https://crrev.com/b61e467059e55ad71f1b7ae5e1412beb3d4803e0 Cr-Commit-Position: refs/heads/master@{#375324}

Patch Set 1 : #

Patch Set 2 : Rebased. #

Total comments: 4

Patch Set 3 : Remove unnecessary default/delete. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -1 line) Patch
M device/usb/usb_descriptors.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M device/usb/usb_descriptors.cc View 1 2 4 chunks +80 lines, -1 line 2 comments Download
M device/usb/usb_descriptors_unittest.cc View 1 1 chunk +75 lines, -0 lines 0 comments Download
M device/usb/usb_device_impl.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (16 generated)
Reilly Grant (use Gerrit)
rockot@, please look at //device pfeldman@, please look at //chrome/browser/devtools stevenjb@, please look at //chrome/browser/chromeos
4 years, 11 months ago (2016-01-06 23:20:04 UTC) #6
pfeldman
devtools lgtm
4 years, 11 months ago (2016-01-06 23:28:00 UTC) #7
stevenjb
c/b/chromeos lgtm
4 years, 11 months ago (2016-01-07 18:04:29 UTC) #8
Reilly Grant (use Gerrit)
rockot@, ping. Now that I've landed https://codereview.chromium.org/1468423003/ I didn't actually need Pavel and Steven's reviews.
4 years, 10 months ago (2016-02-12 18:35:16 UTC) #11
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/1568673002/diff/80001/device/usb/usb_descriptors.cc File device/usb/usb_descriptors.cc (right): https://codereview.chromium.org/1568673002/diff/80001/device/usb/usb_descriptors.cc#newcode34 device/usb/usb_descriptors.cc:34: UsbInterfaceAssociationDescriptor() = delete; I'm fairly sure that this ...
4 years, 10 months ago (2016-02-12 19:25:01 UTC) #13
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1568673002/diff/80001/device/usb/usb_descriptors.cc File device/usb/usb_descriptors.cc (right): https://codereview.chromium.org/1568673002/diff/80001/device/usb/usb_descriptors.cc#newcode34 device/usb/usb_descriptors.cc:34: UsbInterfaceAssociationDescriptor() = delete; On 2016/02/12 19:25:01, Ken Rockot wrote: ...
4 years, 10 months ago (2016-02-12 21:06:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1568673002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1568673002/100001
4 years, 10 months ago (2016-02-12 21:06:44 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/21597)
4 years, 10 months ago (2016-02-12 21:17:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1568673002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1568673002/100001
4 years, 10 months ago (2016-02-13 00:59:17 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 10 months ago (2016-02-13 01:54:29 UTC) #23
gab
https://codereview.chromium.org/1568673002/diff/100001/device/usb/usb_descriptors.cc File device/usb/usb_descriptors.cc (right): https://codereview.chromium.org/1568673002/diff/100001/device/usb/usb_descriptors.cc#newcode191 device/usb/usb_descriptors.cc:191: interface_it != interfaces.end() && This is wrong as if ...
4 years, 10 months ago (2016-02-14 21:02:17 UTC) #25
gab
A revert of this CL (patchset #3 id:100001) has been created in https://codereview.chromium.org/1697863003/ by gab@chromium.org. ...
4 years, 10 months ago (2016-02-14 21:03:04 UTC) #26
gab
https://codereview.chromium.org/1568673002/diff/100001/device/usb/usb_descriptors.cc File device/usb/usb_descriptors.cc (right): https://codereview.chromium.org/1568673002/diff/100001/device/usb/usb_descriptors.cc#newcode191 device/usb/usb_descriptors.cc:191: interface_it != interfaces.end() && On 2016/02/14 21:02:17, gab (OOO ...
4 years, 10 months ago (2016-02-14 21:10:07 UTC) #27
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/b61e467059e55ad71f1b7ae5e1412beb3d4803e0 Cr-Commit-Position: refs/heads/master@{#375324}
4 years, 10 months ago (2016-02-16 22:46:57 UTC) #30
gab
On 2016/02/16 22:46:57, commit-bot: I haz the power wrote: > Patchset 3 (id:??) landed as ...
4 years, 10 months ago (2016-02-16 22:48:45 UTC) #31
gab
4 years, 10 months ago (2016-02-16 22:49:55 UTC) #32
Message was sent while issue was closed.
On 2016/02/16 22:48:45, gab wrote:
> On 2016/02/16 22:46:57, commit-bot: I haz the power wrote:
> > Patchset 3 (id:??) landed as
> > https://crrev.com/b61e467059e55ad71f1b7ae5e1412beb3d4803e0
> > Cr-Commit-Position: refs/heads/master@{#375324}
> 
> Hmmm? This was relanded without the fix?

Nvm, looks like commit-bot is going nuts commenting on all the issues it landed
long ago..

Powered by Google App Engine
This is Rietveld 408576698