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

Issue 12471013: Add chrome.usb.listInterfaces API (Closed)

Created:
7 years, 9 months ago by Kenny Root (Google)
Modified:
7 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

This adds a way to interrogate the USB interfaces. It will list out all the possible interfaces for a particular device along with all of its USB descriptions. BUG=224132 TEST=Automated test for listInterfaces, manual test for actual libusb interaction Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202097

Patch Set 1 #

Total comments: 21

Patch Set 2 : Response to PS1 comments #

Patch Set 3 : Response to Bei's PS1 comments #

Total comments: 3

Patch Set 4 : Added manual test #

Patch Set 5 : Fixed bug found with manual test #

Total comments: 4

Patch Set 6 : Removed "RemoveUsbDeviceResource" call and rebased #

Total comments: 1

Patch Set 7 : added "extensions::" to usb_manual_apitest.cc #

Patch Set 8 : rebase of PS7 #

Patch Set 9 : Rebase of PS8 #

Patch Set 10 : Rebase of PS9 #

Patch Set 11 : Rebase of PS10 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+782 lines, -58 lines) Patch
M chrome/browser/extensions/api/usb/usb_api.h View 1 2 3 2 chunks +32 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/usb/usb_api.cc View 1 2 3 4 5 6 7 17 chunks +244 lines, -20 lines 0 comments Download
M chrome/browser/extensions/api/usb/usb_apitest.cc View 1 2 3 2 chunks +19 lines, -9 lines 0 comments Download
A chrome/browser/extensions/api/usb/usb_manual_apitest.cc View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/usb/usb_device.h View 1 2 3 6 chunks +9 lines, -12 lines 0 comments Download
M chrome/browser/usb/usb_device.cc View 1 2 3 7 chunks +32 lines, -12 lines 0 comments Download
A chrome/browser/usb/usb_interface.h View 1 1 chunk +130 lines, -0 lines 0 comments Download
A chrome/browser/usb/usb_interface.cc View 1 2 3 1 chunk +166 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/usb.idl View 1 2 3 4 chunks +39 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/api_test/usb/list_interfaces/manifest.json View 1 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/usb/list_interfaces/test.js View 1 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/usb_manual/list_interfaces/manifest.json View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/usb_manual/list_interfaces/test.js View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
miket_OOO
Kenny, will you please edit this issue description to get rid of the WIP status, ...
7 years, 8 months ago (2013-04-26 16:32:03 UTC) #1
adlr
I think a rebase is needed for one of the enums. Also, looks like a ...
7 years, 8 months ago (2013-04-26 17:33:07 UTC) #2
Bei Zhang
Hi Kenny, I was going to say good if you fix the tests, but unfortunately, ...
7 years, 8 months ago (2013-04-26 17:48:06 UTC) #3
NOT Mike Tsao (try miket)
Let's get this CL landed. It was here first, so it's fair to make the ...
7 years, 8 months ago (2013-04-26 19:00:00 UTC) #4
Bei Zhang
Thanks Kenny! This is a very desirable feature. Please add unit tests and browser tests ...
7 years, 8 months ago (2013-04-26 22:38:00 UTC) #5
Kenny Root (Google)
https://codereview.chromium.org/12471013/diff/1/chrome/browser/extensions/api/usb/usb_api.cc File chrome/browser/extensions/api/usb/usb_api.cc (right): https://codereview.chromium.org/12471013/diff/1/chrome/browser/extensions/api/usb/usb_api.cc#newcode98 chrome/browser/extensions/api/usb/usb_api.cc:98: default: On 2013/04/26 22:38:01, Bei Zhang wrote: > I ...
7 years, 7 months ago (2013-05-08 01:15:08 UTC) #6
Kenny Root (Google)
https://codereview.chromium.org/12471013/diff/13001/chrome/browser/extensions/api/usb/usb_api.cc File chrome/browser/extensions/api/usb/usb_api.cc (right): https://codereview.chromium.org/12471013/diff/13001/chrome/browser/extensions/api/usb/usb_api.cc#newcode167 chrome/browser/extensions/api/usb/usb_api.cc:167: return false; Looks like I did that and accidentally ...
7 years, 7 months ago (2013-05-08 02:29:34 UTC) #7
Bei Zhang
lgtm except for the RemoveUsbDeviceResource issue in usb_api.cc. Please fix that and rebase. https://codereview.chromium.org/12471013/diff/13001/chrome/browser/usb/usb_interface.cc File ...
7 years, 7 months ago (2013-05-14 20:55:47 UTC) #8
Kenny Root (Google)
Patch with response coming. https://codereview.chromium.org/12471013/diff/24001/chrome/browser/extensions/api/usb/usb_api.cc File chrome/browser/extensions/api/usb/usb_api.cc (right): https://codereview.chromium.org/12471013/diff/24001/chrome/browser/extensions/api/usb/usb_api.cc#newcode438 chrome/browser/extensions/api/usb/usb_api.cc:438: UsbService* const service = UsbServiceFactory::GetInstance()->GetForProfile( ...
7 years, 7 months ago (2013-05-15 04:43:13 UTC) #9
Kenny Root (Google)
Just sent PS6 to the trybot and it failed, but I can't reproduce the issue. ...
7 years, 7 months ago (2013-05-15 06:57:57 UTC) #10
Bei Zhang
Please rebase to master before commit. Thanks for the effort! https://codereview.chromium.org/12471013/diff/46001/chrome/browser/extensions/api/usb/usb_manual_apitest.cc File chrome/browser/extensions/api/usb/usb_manual_apitest.cc (right): https://codereview.chromium.org/12471013/diff/46001/chrome/browser/extensions/api/usb/usb_manual_apitest.cc#newcode22 ...
7 years, 7 months ago (2013-05-16 17:46:42 UTC) #11
Kenny Root (Google)
Hi, Garrett, Could you review this change? It's ready for submission and you're still in ...
7 years, 7 months ago (2013-05-17 00:03:35 UTC) #12
Garret Kelly
OWNERS LGTM. Garret
7 years, 7 months ago (2013-05-22 15:17:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kroot@google.com/12471013/64001
7 years, 7 months ago (2013-05-23 01:01:32 UTC) #14
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=4498
7 years, 7 months ago (2013-05-23 01:22:22 UTC) #15
Kenny Root (Google)
Antony, could you review this? I need extensions OWNERS approval.
7 years, 7 months ago (2013-05-23 16:55:45 UTC) #16
asargent_no_longer_on_chrome
LGTM
7 years, 7 months ago (2013-05-23 18:32:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kroot@google.com/12471013/64001
7 years, 7 months ago (2013-05-23 19:20:07 UTC) #18
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_function_histogram_value.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-23 19:20:13 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kroot@google.com/12471013/64001
7 years, 7 months ago (2013-05-23 19:20:51 UTC) #20
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_function_histogram_value.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-23 19:20:56 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kroot@google.com/12471013/77002
7 years, 7 months ago (2013-05-23 19:57:01 UTC) #22
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=153185
7 years, 7 months ago (2013-05-23 23:23:29 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kroot@google.com/12471013/77002
7 years, 7 months ago (2013-05-24 01:07:29 UTC) #24
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_function_histogram_value.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-24 01:07:34 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kroot@google.com/12471013/111001
7 years, 7 months ago (2013-05-24 04:21:27 UTC) #26
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_function_histogram_value.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-24 04:21:36 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kroot@google.com/12471013/116001
7 years, 7 months ago (2013-05-24 04:39:59 UTC) #28
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, chrome_frame_net_tests, chrome_frame_tests, ...
7 years, 7 months ago (2013-05-24 10:45:38 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kroot@google.com/12471013/116001
7 years, 7 months ago (2013-05-24 14:04:31 UTC) #30
commit-bot: I haz the power
7 years, 7 months ago (2013-05-24 16:08:21 UTC) #31
Message was sent while issue was closed.
Change committed as 202097

Powered by Google App Engine
This is Rietveld 408576698