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

Issue 558373002: Add chrome.usb.getConfiguration and expose extra descriptors. (Closed)

Created:
6 years, 3 months ago by Reilly Grant (use Gerrit)
Modified:
6 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add chrome.usb.getConfiguration and expose extra descriptors. Adds a new API function, chrome.usb.getConfiguration, that returns all the data from the device's configuration descriptor instead of just the interfaces as chrome.usb.listInterfaces does. Each level of the descriptor hierarchy also gets an "extra_data" field which contains all of the miscellaneous descriptors assocated with a configuration, interface or endpoint. BUG=382908 Committed: https://crrev.com/79146d0b0d917eb6482cf2c22ec76db09eaa5a37 Cr-Commit-Position: refs/heads/master@{#294758}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Use interface and endpoint iterators. #

Patch Set 3 : Rebased to tip of tree. #

Patch Set 4 : Rebased to tip of tree. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -202 lines) Patch
M extensions/browser/api/usb/usb_api.h View 2 chunks +16 lines, -11 lines 0 comments Download
M extensions/browser/api/usb/usb_api.cc View 1 14 chunks +163 lines, -191 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/usb.idl View 4 chunks +28 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (14 generated)
Reilly Grant (use Gerrit)
6 years, 3 months ago (2014-09-11 15:26:22 UTC) #6
rpaquay
lgtm
6 years, 3 months ago (2014-09-11 19:09:23 UTC) #7
Reilly Grant (use Gerrit)
Adding Mustafa for security review since this is exposing a little more information about the ...
6 years, 3 months ago (2014-09-11 19:11:01 UTC) #9
meacer
Thanks for looping me in Reilly. Just to confirm, this API will only be available ...
6 years, 3 months ago (2014-09-11 19:17:20 UTC) #10
Reilly Grant (use Gerrit)
https://codereview.chromium.org/558373002/diff/80001/extensions/browser/api/usb/usb_api.cc File extensions/browser/api/usb/usb_api.cc (right): https://codereview.chromium.org/558373002/diff/80001/extensions/browser/api/usb/usb_api.cc#newcode386 extensions/browser/api/usb/usb_api.cc:386: for (size_t i = 0; i < input.endpoints.size(); ++i) ...
6 years, 3 months ago (2014-09-11 19:38:47 UTC) #11
meacer
https://codereview.chromium.org/558373002/diff/80001/extensions/browser/api/usb/usb_api.cc File extensions/browser/api/usb/usb_api.cc (right): https://codereview.chromium.org/558373002/diff/80001/extensions/browser/api/usb/usb_api.cc#newcode386 extensions/browser/api/usb/usb_api.cc:386: for (size_t i = 0; i < input.endpoints.size(); ++i) ...
6 years, 3 months ago (2014-09-11 19:55:05 UTC) #12
Reilly Grant (use Gerrit)
Rebased this patch on top of https://codereview.chromium.org/562763002/ where I have added interface and endpoint iterators.
6 years, 3 months ago (2014-09-11 20:44:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/558373002/100001
6 years, 3 months ago (2014-09-12 15:58:23 UTC) #15
Reilly Grant (use Gerrit)
Added scheib@ for extension/common/api/usb.idl changes. Added asvitkine@ for extension function histogram changes.
6 years, 3 months ago (2014-09-12 16:30:26 UTC) #18
Alexei Svitkine (slow)
lgtm
6 years, 3 months ago (2014-09-12 16:43:47 UTC) #19
scheib
extension/common/api/usb.idl lgtm.
6 years, 3 months ago (2014-09-12 19:19:07 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/558373002/120001
6 years, 3 months ago (2014-09-13 06:53:34 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/10027)
6 years, 3 months ago (2014-09-13 06:57:26 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/558373002/140001
6 years, 3 months ago (2014-09-13 17:06:40 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/9313)
6 years, 3 months ago (2014-09-13 18:43:48 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/558373002/140001
6 years, 3 months ago (2014-09-14 01:30:49 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:140001) as 2532566fa1fd111bf006a5d2943cd19b599d023e
6 years, 3 months ago (2014-09-14 05:21:49 UTC) #31
commit-bot: I haz the power
6 years, 3 months ago (2014-09-14 05:23:33 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/79146d0b0d917eb6482cf2c22ec76db09eaa5a37
Cr-Commit-Position: refs/heads/master@{#294758}

Powered by Google App Engine
This is Rietveld 408576698