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

Issue 1877503003: Replace libusb in the Linux/Chrome OS USB I/O path. (Closed)

Created:
4 years, 8 months ago by Reilly Grant (use Gerrit)
Modified:
4 years, 8 months ago
Reviewers:
juncai
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace libusb in the Linux/Chrome OS USB I/O path. As a first step in adding support for connecting to USB devices on Android this patch replaces the libusb-based implementation of UsbDeviceHandle used on Linux and Chrome OS with one written directly to the Linux usbdevfs ioctl interface. BUG=422562, 601627 Committed: https://crrev.com/fed1de7faf5d91a3282d461fd1c0657f8fe3a533 Cr-Commit-Position: refs/heads/master@{#387315}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 41

Patch Set 3 : Rebased and addressed feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1078 lines, -24 lines) Patch
M device/usb/BUILD.gn View 2 chunks +15 lines, -0 lines 0 comments Download
M device/usb/usb.gyp View 2 chunks +14 lines, -0 lines 0 comments Download
M device/usb/usb_device_handle.h View 1 chunk +0 lines, -1 line 0 comments Download
M device/usb/usb_device_handle_unittest.cc View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A device/usb/usb_device_handle_usbfs.h View 1 2 1 chunk +151 lines, -0 lines 0 comments Download
A device/usb/usb_device_handle_usbfs.cc View 1 2 1 chunk +800 lines, -0 lines 0 comments Download
M device/usb/usb_device_impl.h View 1 2 4 chunks +10 lines, -2 lines 0 comments Download
M device/usb/usb_device_impl.cc View 1 2 7 chunks +58 lines, -21 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Reilly Grant (use Gerrit)
Please take a look. This patch will be landed after the M-51 branch is cut ...
4 years, 8 months ago (2016-04-09 02:13:13 UTC) #3
juncai
https://codereview.chromium.org/1877503003/diff/40001/device/usb/usb_device_handle_usbfs.cc File device/usb/usb_device_handle_usbfs.cc (right): https://codereview.chromium.org/1877503003/diff/40001/device/usb/usb_device_handle_usbfs.cc#newcode42 device/usb/usb_device_handle_usbfs.cc:42: return 0; Noticed that USB_DIR_OUT has value 0: Maybe ...
4 years, 8 months ago (2016-04-13 00:22:33 UTC) #4
juncai
https://codereview.chromium.org/1877503003/diff/40001/device/usb/usb_device_impl.cc File device/usb/usb_device_impl.cc (right): https://codereview.chromium.org/1877503003/diff/40001/device/usb/usb_device_impl.cc#newcode264 device/usb/usb_device_impl.cc:264: break; may just use return; here.
4 years, 8 months ago (2016-04-13 00:31:10 UTC) #5
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1877503003/diff/40001/device/usb/usb_device_handle_usbfs.cc File device/usb/usb_device_handle_usbfs.cc (right): https://codereview.chromium.org/1877503003/diff/40001/device/usb/usb_device_handle_usbfs.cc#newcode42 device/usb/usb_device_handle_usbfs.cc:42: return 0; On 2016/04/13 at 00:22:32, juncai wrote: > ...
4 years, 8 months ago (2016-04-13 20:21:14 UTC) #6
juncai
LGTM with one nit. https://codereview.chromium.org/1877503003/diff/40001/device/usb/usb_device_handle_usbfs.h File device/usb/usb_device_handle_usbfs.h (right): https://codereview.chromium.org/1877503003/diff/40001/device/usb/usb_device_handle_usbfs.h#newcode35 device/usb/usb_device_handle_usbfs.h:35: // UsbDeviceHandle implementation. nit: s/implementation/overrides ...
4 years, 8 months ago (2016-04-13 23:52:12 UTC) #7
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1877503003/diff/40001/device/usb/usb_device_handle_usbfs.h File device/usb/usb_device_handle_usbfs.h (right): https://codereview.chromium.org/1877503003/diff/40001/device/usb/usb_device_handle_usbfs.h#newcode35 device/usb/usb_device_handle_usbfs.h:35: // UsbDeviceHandle implementation. On 2016/04/13 at 23:52:12, juncai wrote: ...
4 years, 8 months ago (2016-04-14 00:02:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877503003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877503003/60001
4 years, 8 months ago (2016-04-14 14:50:47 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 8 months ago (2016-04-14 14:55:53 UTC) #11
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/fed1de7faf5d91a3282d461fd1c0657f8fe3a533 Cr-Commit-Position: refs/heads/master@{#387315}
4 years, 8 months ago (2016-04-14 14:57:01 UTC) #13
Will Harris
4 years, 8 months ago (2016-04-15 19:49:44 UTC) #14
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:60001) has been created in
https://codereview.chromium.org/1897483003/ by wfh@chromium.org.

The reason for reverting is: broke u2f see crbug.com/603962.

Powered by Google App Engine
This is Rietveld 408576698