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

Issue 809743006: Add an Observer interface to UsbService for device add/remove. (Closed)

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

Description

Add an Observer interface to UsbService for device add/remove. On platforms where libusb supports hotplug events this observer interface allows clients of UsbService to be notified when devices are added and removed from the system. When hotplug events are not available these events are only generated in response to an explicit enumeration request. The UsbDevice::Observer interface has been removed so that UsbDevice can be a truly thread-safe object. BUG=411715 Committed: https://crrev.com/4ebb03e08ae49fb5be8306f34bb18c9da905a4aa Cr-Commit-Position: refs/heads/master@{#310140}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove UsbDevice::Observer so that UsbDevice is truely thread-safe. #

Total comments: 1

Patch Set 3 : Clarify comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -94 lines) Patch
M chrome/browser/extensions/api/device_permissions_manager_unittest.cc View 1 11 chunks +62 lines, -25 lines 0 comments Download
M device/usb/usb_device.h View 1 4 chunks +3 lines, -15 lines 0 comments Download
M device/usb/usb_device_impl.cc View 1 3 chunks +8 lines, -19 lines 0 comments Download
M device/usb/usb_service.h View 1 3 chunks +19 lines, -2 lines 0 comments Download
M device/usb/usb_service_impl.cc View 1 5 chunks +43 lines, -10 lines 0 comments Download
M extensions/browser/api/device_permissions_manager.h View 1 4 chunks +6 lines, -8 lines 0 comments Download
M extensions/browser/api/device_permissions_manager.cc View 1 2 6 chunks +21 lines, -15 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Reilly Grant (use Gerrit)
Antony, please take a look at this patch.
5 years, 11 months ago (2015-01-05 19:21:27 UTC) #2
asargent_no_longer_on_chrome
lgtm w/ a question and a suggestion https://codereview.chromium.org/809743006/diff/1/device/usb/usb_service_impl.cc File device/usb/usb_service_impl.cc (right): https://codereview.chromium.org/809743006/diff/1/device/usb/usb_service_impl.cc#newcode183 device/usb/usb_service_impl.cc:183: device->OnDisconnect(); I ...
5 years, 11 months ago (2015-01-05 22:01:58 UTC) #3
Reilly Grant (use Gerrit)
https://codereview.chromium.org/809743006/diff/1/device/usb/usb_service_impl.cc File device/usb/usb_service_impl.cc (right): https://codereview.chromium.org/809743006/diff/1/device/usb/usb_service_impl.cc#newcode183 device/usb/usb_service_impl.cc:183: device->OnDisconnect(); On 2015/01/05 22:01:58, Antony Sargent wrote: > I ...
5 years, 11 months ago (2015-01-05 22:10:34 UTC) #4
Reilly Grant (use Gerrit)
Antony, please take another looks as I've updated this patch to remove the old observer ...
5 years, 11 months ago (2015-01-06 03:25:52 UTC) #5
asargent_no_longer_on_chrome
new version of code lgtm, just one point of confusion in a comment https://codereview.chromium.org/809743006/diff/20001/extensions/browser/api/device_permissions_manager.cc File ...
5 years, 11 months ago (2015-01-06 17:59:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/809743006/40001
5 years, 11 months ago (2015-01-06 19:07:07 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-06 20:58:35 UTC) #9
commit-bot: I haz the power
5 years, 11 months ago (2015-01-06 20:59:45 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4ebb03e08ae49fb5be8306f34bb18c9da905a4aa
Cr-Commit-Position: refs/heads/master@{#310140}

Powered by Google App Engine
This is Rietveld 408576698