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

Issue 803653003: Use USB hotplug events from libusb when possible. (Closed)

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

Description

Use USB hotplug events from libusb when possible. When possible subscribe to the USB device add and remove events exposed by libusb instead of refreshing the device list every time a client requests a list of devices. In practice this means that hotplug events are used on Linux (when udev is available) and OS X. This is the first step to providing USB hotplug events on all platforms. BUG=411715 Committed: https://crrev.com/0ae3a999fb424785077a9a34817d96bc79417ddf Cr-Commit-Position: refs/heads/master@{#309946}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add a comment about libusb's thread-safety guarantees. #

Total comments: 1

Patch Set 3 : Share code on the device add path. #

Patch Set 4 : Fix function spelling. #

Patch Set 5 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -38 lines) Patch
M device/test/usb_test_gadget_impl.cc View 1 2 8 chunks +15 lines, -7 lines 0 comments Download
M device/usb/usb_service_impl.cc View 1 2 6 chunks +138 lines, -31 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Reilly Grant (use Gerrit)
Renaud, please take a look at this. It is not urgent as this is only ...
6 years ago (2014-12-18 19:00:19 UTC) #2
rpaquay
https://codereview.chromium.org/803653003/diff/1/device/usb/usb_service_impl.cc File device/usb/usb_service_impl.cc (right): https://codereview.chromium.org/803653003/diff/1/device/usb/usb_service_impl.cc#newcode225 device/usb/usb_service_impl.cc:225: base::Unretained(self), device)); nit: Comment why using Unretained is ok? ...
6 years ago (2014-12-18 21:08:54 UTC) #3
Reilly Grant (use Gerrit)
https://codereview.chromium.org/803653003/diff/1/device/usb/usb_service_impl.cc File device/usb/usb_service_impl.cc (right): https://codereview.chromium.org/803653003/diff/1/device/usb/usb_service_impl.cc#newcode225 device/usb/usb_service_impl.cc:225: base::Unretained(self), device)); On 2014/12/18 21:08:54, rpaquay wrote: > nit: ...
6 years ago (2014-12-18 22:28:13 UTC) #4
rpaquay
lgtm https://codereview.chromium.org/803653003/diff/20001/device/usb/usb_service_impl.cc File device/usb/usb_service_impl.cc (right): https://codereview.chromium.org/803653003/diff/20001/device/usb/usb_service_impl.cc#newcode219 device/usb/usb_service_impl.cc:219: // and so guarantees that this funciton will ...
6 years ago (2014-12-18 22:52:47 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/803653003/80001
5 years, 11 months ago (2015-01-05 19:07:43 UTC) #7
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-05 20:13:11 UTC) #8
commit-bot: I haz the power
5 years, 11 months ago (2015-01-05 20:14:02 UTC) #9
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0ae3a999fb424785077a9a34817d96bc79417ddf
Cr-Commit-Position: refs/heads/master@{#309946}

Powered by Google App Engine
This is Rietveld 408576698