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

Issue 2857473002: Use the task scheduler in the USB service on macOS and Windows (Closed)

Created:
3 years, 7 months ago by Reilly Grant (use Gerrit)
Modified:
3 years, 7 months ago
Reviewers:
robliao
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use the task scheduler in the USB service on macOS and Windows This updates the libusb-based USB service to use the task scheduler which means it will be enabled on macOS and Windows. The new Windows USB service will be updated next. By executing these tasks on a sequence with the CONTINUE_ON_SHUTDOWN trait a device or driver bug that causes a request to lock up should not prevent Chrome from shutting down. BUG=652416, 703585 Review-Url: https://codereview.chromium.org/2857473002 Cr-Commit-Position: refs/heads/master@{#468967} Committed: https://chromium.googlesource.com/chromium/src/+/402c8ae126b3f215c11c3845637542db2a68ccc5

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add AssertIOAllowed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -44 lines) Patch
M device/usb/usb_device_handle_impl.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M device/usb/usb_device_impl.h View 3 chunks +7 lines, -7 lines 0 comments Download
M device/usb/usb_device_impl.cc View 1 5 chunks +25 lines, -17 lines 0 comments Download
M device/usb/usb_service.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M device/usb/usb_service_impl.h View 2 chunks +1 line, -6 lines 0 comments Download
M device/usb/usb_service_impl.cc View 4 chunks +20 lines, -9 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
Reilly Grant (use Gerrit)
Please take a look. Same idea, different OS.
3 years, 7 months ago (2017-05-02 01:49:36 UTC) #2
robliao
Some questions. https://codereview.chromium.org/2857473002/diff/1/device/usb/usb_device_handle_impl.cc File device/usb/usb_device_handle_impl.cc (right): https://codereview.chromium.org/2857473002/diff/1/device/usb/usb_device_handle_impl.cc#newcode152 device/usb/usb_device_handle_impl.cc:152: int interface_number() const { return interface_number_; } ...
3 years, 7 months ago (2017-05-02 14:32:59 UTC) #3
Reilly Grant (use Gerrit)
Add AssertIOAllowed
3 years, 7 months ago (2017-05-02 23:39:24 UTC) #4
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2857473002/diff/1/device/usb/usb_device_handle_impl.cc File device/usb/usb_device_handle_impl.cc (right): https://codereview.chromium.org/2857473002/diff/1/device/usb/usb_device_handle_impl.cc#newcode152 device/usb/usb_device_handle_impl.cc:152: int interface_number() const { return interface_number_; } On 2017/05/02 ...
3 years, 7 months ago (2017-05-02 23:41:44 UTC) #6
robliao
Task usage lgtm.
3 years, 7 months ago (2017-05-03 14:05:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2857473002/20001
3 years, 7 months ago (2017-05-03 14:39:43 UTC) #12
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 14:45:16 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/402c8ae126b3f215c11c38456375...

Powered by Google App Engine
This is Rietveld 408576698