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

Issue 462753002: Add usb_service::UsbDeviceFilter class for device matching. (Closed)

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

Description

Add usb_service::UsbDeviceFilter class for device matching. This class stores criteria for selecting USB devices. A device can be matched by its vendor and product IDs, and the interfaces that it implements. BUG=346953 TBR=satorux@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289370

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix a logic error and add complete unit tests. #

Patch Set 3 : Add UsbDevice::RequestUsbAccess to the mock (and fix spelling). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+441 lines, -22 lines) Patch
M chrome/browser/devtools/device/usb/android_usb_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/devtools/device/usb/android_usb_device.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chromeos/dbus/permission_broker_client.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/components_tests.gyp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M components/usb_service.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M components/usb_service/usb_device.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
A components/usb_service/usb_device_filter.h View 1 chunk +48 lines, -0 lines 0 comments Download
A components/usb_service/usb_device_filter.cc View 1 2 1 chunk +128 lines, -0 lines 0 comments Download
A components/usb_service/usb_device_filter_unittest.cc View 1 2 1 chunk +239 lines, -0 lines 0 comments Download
M components/usb_service/usb_device_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/usb_service/usb_device_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/usb/usb_api.cc View 1 2 3 chunks +13 lines, -13 lines 0 comments Download
M extensions/browser/api/usb/usb_apitest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
Reilly Grant (use Gerrit)
6 years, 4 months ago (2014-08-11 17:53:49 UTC) #1
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/462753002/diff/1/components/usb_service/usb_device_filter.h File components/usb_service/usb_device_filter.h (right): https://codereview.chromium.org/462753002/diff/1/components/usb_service/usb_device_filter.h#newcode39 components/usb_service/usb_device_filter.h:39: bool vendor_id_set_ : 1; Alternatively consider using scoped ...
6 years, 4 months ago (2014-08-11 20:18:45 UTC) #2
Reilly Grant (use Gerrit)
On 2014/08/11 20:18:45, Ken Rockot wrote: > A good compromise would be to build something ...
6 years, 4 months ago (2014-08-11 20:30:40 UTC) #3
Reilly Grant (use Gerrit)
I found a logic error in manual testing that would have been caught with more ...
6 years, 4 months ago (2014-08-11 21:09:01 UTC) #4
Reilly Grant (use Gerrit)
Had to add UsbDevice::RequestUsbAccess to the mock so that the tests would compile on Chrome ...
6 years, 4 months ago (2014-08-12 17:47:59 UTC) #5
Reilly Grant (use Gerrit)
Adding dgozman and satorux1 to review Android and DBus-related files that changed as a result ...
6 years, 4 months ago (2014-08-12 19:39:18 UTC) #6
Ken Rockot(use gerrit already)
everything else still lgtm
6 years, 4 months ago (2014-08-12 19:42:18 UTC) #7
Reilly Grant (use Gerrit)
The CQ bit was checked by reillyg@chromium.org
6 years, 4 months ago (2014-08-12 21:35:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reillyg@chromium.org/462753002/100001
6 years, 4 months ago (2014-08-12 21:37:34 UTC) #9
Reilly Grant (use Gerrit)
The CQ bit was unchecked by reillyg@chromium.org
6 years, 4 months ago (2014-08-12 21:46:14 UTC) #10
dgozman
chrome/browser/devtools lgtm
6 years, 4 months ago (2014-08-13 13:51:18 UTC) #11
Reilly Grant (use Gerrit)
The CQ bit was checked by reillyg@chromium.org
6 years, 4 months ago (2014-08-13 18:07:15 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reillyg@chromium.org/462753002/100001
6 years, 4 months ago (2014-08-13 18:09:10 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel_swarming on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-13 19:55:01 UTC) #14
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 20:53:10 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (100001) as 289370

Powered by Google App Engine
This is Rietveld 408576698