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

Issue 2804313005: Make HidConnection::Read reentrancy safe (Closed)

Created:
3 years, 8 months ago by Reilly Grant (use Gerrit)
Modified:
3 years, 8 months ago
Reviewers:
Casey Piper, juncai
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make HidConnection::Read reentrancy safe This change makes it safe to call HidConnection::Read from within the callback passed to a previous call to this method. On macOS and Linux this means moving protected input report filtering to before the report is queued. On Windows this wasn't an issue but filtered input reports would cause a callback to never be executed. BUG=None Review-Url: https://codereview.chromium.org/2804313005 Cr-Commit-Position: refs/heads/master@{#463347} Committed: https://chromium.googlesource.com/chromium/src/+/11eb9bf9995543cd1ff691dfa76303dc626e967a

Patch Set 1 #

Patch Set 2 : More callback safety #

Patch Set 3 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -33 lines) Patch
M device/hid/hid_connection.h View 1 chunk +1 line, -10 lines 0 comments Download
M device/hid/hid_connection.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M device/hid/hid_connection_linux.cc View 1 2 2 chunks +12 lines, -2 lines 0 comments Download
M device/hid/hid_connection_mac.cc View 1 2 chunks +12 lines, -3 lines 0 comments Download
M device/hid/hid_connection_win.cc View 1 2 1 chunk +17 lines, -4 lines 0 comments Download

Messages

Total messages: 30 (18 generated)
Reilly Grant (use Gerrit)
This should fix your issue. Please take a look.
3 years, 8 months ago (2017-04-07 21:27:03 UTC) #2
Reilly Grant (use Gerrit)
More callback safety
3 years, 8 months ago (2017-04-08 00:13:05 UTC) #7
Casey Piper
lgtm, no longer seeing crashes when reentering
3 years, 8 months ago (2017-04-09 03:51:19 UTC) #12
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/2804313005/20001
3 years, 8 months ago (2017-04-10 07:33:33 UTC) #14
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 8 months ago (2017-04-10 07:33:34 UTC) #16
Reilly Grant (use Gerrit)
Oops, I forgot that one needs to be a committer to approve changes. Jun, can ...
3 years, 8 months ago (2017-04-10 17:49:28 UTC) #18
juncai
LGTM.
3 years, 8 months ago (2017-04-10 17:58:40 UTC) #19
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/2804313005/20001
3 years, 8 months ago (2017-04-10 18:03:13 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/187556) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-10 18:06:54 UTC) #23
Reilly Grant (use Gerrit)
Rebased.
3 years, 8 months ago (2017-04-10 18:12:16 UTC) #24
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/2804313005/40001
3 years, 8 months ago (2017-04-10 18:13:32 UTC) #27
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 19:07:55 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/11eb9bf9995543cd1ff691dfa763...

Powered by Google App Engine
This is Rietveld 408576698