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

Issue 1857033002: Include USB device version in chrome.usb.Device fields. (Closed)

Created:
4 years, 8 months ago by Reilly Grant (use Gerrit)
Modified:
3 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), extensions-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Include USB device version in chrome.usb.Device fields. This field is sometimes necessary to determine the protocol supported by a device as it may change from one version of a device with the same vendor and product ID pair to the next. While plumbing this through //device/usb this patch also adds a number of other device descriptor fields that are exposed through the Mojo interface but weren't actually hooked up. BUG=598825 TBR=yurys@chromium.org Committed: https://crrev.com/a8a7407bab1e16cf519cb84eb73eb3c030f87528 Cr-Commit-Position: refs/heads/master@{#385617}

Patch Set 1 : #

Total comments: 1

Patch Set 2 : Commented parameters. #

Patch Set 3 : Extract fields on Android as well. #

Total comments: 1

Patch Set 4 : Added getter for device version on Android. #

Patch Set 5 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -21 lines) Patch
M chrome/browser/devtools/device/usb/android_usb_browsertest.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download
M device/usb/android/java/src/org/chromium/device/usb/ChromeUsbDevice.java View 1 2 3 2 chunks +28 lines, -0 lines 0 comments Download
M device/usb/mock_usb_device.cc View 1 2 chunks +12 lines, -2 lines 0 comments Download
M device/usb/mojo/type_converters.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M device/usb/usb_device.h View 3 chunks +16 lines, -1 line 0 comments Download
M device/usb/usb_device.cc View 2 chunks +12 lines, -2 lines 0 comments Download
M device/usb/usb_device_android.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M device/usb/usb_device_android.cc View 1 2 3 3 chunks +21 lines, -4 lines 0 comments Download
M device/usb/usb_device_impl.h View 2 chunks +3 lines, -3 lines 0 comments Download
M device/usb/usb_device_impl.cc View 1 chunk +8 lines, -4 lines 0 comments Download
M device/usb/usb_service_impl.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/browser/api/usb/usb_guid_map.cc View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/usb.idl View 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/test/data/api_test/usb/device_handling/test.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
Reilly Grant (use Gerrit)
asargent@, for //extensions and //device. yurys@, for //chrome/browser/devtools
4 years, 8 months ago (2016-04-04 23:17:48 UTC) #3
asargent_no_longer_on_chrome
//device and //extensions lgtm https://codereview.chromium.org/1857033002/diff/20001/device/usb/mock_usb_device.cc File device/usb/mock_usb_device.cc (right): https://codereview.chromium.org/1857033002/diff/20001/device/usb/mock_usb_device.cc#newcode22 device/usb/mock_usb_device.cc:22: 0xff, optional: consider adding comments ...
4 years, 8 months ago (2016-04-04 23:52:28 UTC) #8
asargent_no_longer_on_chrome
//device and //extensions lgtm https://codereview.chromium.org/1857033002/diff/20001/device/usb/mock_usb_device.cc File device/usb/mock_usb_device.cc (right): https://codereview.chromium.org/1857033002/diff/20001/device/usb/mock_usb_device.cc#newcode22 device/usb/mock_usb_device.cc:22: 0xff, optional: consider adding comments ...
4 years, 8 months ago (2016-04-04 23:52:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1857033002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1857033002/40001
4 years, 8 months ago (2016-04-05 01:33:32 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/45517) android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, ...
4 years, 8 months ago (2016-04-05 02:02:32 UTC) #15
Reilly Grant (use Gerrit)
Please take another look as I just had to add a bit of code for ...
4 years, 8 months ago (2016-04-05 20:38:42 UTC) #16
asargent_no_longer_on_chrome
new version lgtm https://codereview.chromium.org/1857033002/diff/60001/device/usb/usb_device_android.cc File device/usb/usb_device_android.cc (right): https://codereview.chromium.org/1857033002/diff/60001/device/usb/usb_device_android.cc#newcode49 device/usb/usb_device_android.cc:49: 0x0000, // Device version, not available ...
4 years, 8 months ago (2016-04-05 21:31:17 UTC) #17
Reilly Grant (use Gerrit)
On 2016/04/05 at 21:31:17, asargent wrote: > new version lgtm > > https://codereview.chromium.org/1857033002/diff/60001/device/usb/usb_device_android.cc > File ...
4 years, 8 months ago (2016-04-05 23:30:20 UTC) #18
asargent_no_longer_on_chrome
nice, new version lgtm
4 years, 8 months ago (2016-04-06 16:56:59 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1857033002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1857033002/100001
4 years, 8 months ago (2016-04-06 21:48:07 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 8 months ago (2016-04-07 02:20:42 UTC) #23
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/a8a7407bab1e16cf519cb84eb73eb3c030f87528 Cr-Commit-Position: refs/heads/master@{#385617}
4 years, 8 months ago (2016-04-07 02:22:20 UTC) #25
xpersany
3 years, 5 months ago (2017-07-15 22:07:01 UTC) #27
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698