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

Issue 2799743006: Remove MessageLoop destruction observer from hid_connection_linux.cc (Closed)

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

Description

Remove MessageLoop destruction observer from hid_connection_linux.cc This patch makes HidConnectionLinux::FileThreadHelper to no longer a MessageLoop::DestructionObserver and cleans up ownership of the device file descriptor. BUG=650723 Review-Url: https://codereview.chromium.org/2799743006 Cr-Commit-Position: refs/heads/master@{#463103} Committed: https://chromium.googlesource.com/chromium/src/+/6a2cc0923f353e6ab781ba7ef21b664106145c1a

Patch Set 1 #

Total comments: 25

Patch Set 2 : Addressed feedback #

Total comments: 2

Patch Set 3 : Last review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -228 lines) Patch
M device/hid/hid_connection_linux.h View 1 2 3 chunks +12 lines, -39 lines 0 comments Download
M device/hid/hid_connection_linux.cc View 1 2 9 chunks +98 lines, -154 lines 0 comments Download
M device/hid/hid_service_linux.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M device/hid/hid_service_linux.cc View 1 11 chunks +35 lines, -32 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
Reilly Grant (use Gerrit)
PTAL
3 years, 8 months ago (2017-04-06 21:39:54 UTC) #2
robliao
Adding fdoray@ who did a lot of the MessageLoop destruction observer removals.
3 years, 8 months ago (2017-04-06 23:04:38 UTC) #4
robliao
Task usage looks okay. I'm not familiar with the posix IO behavior, so I didn't ...
3 years, 8 months ago (2017-04-07 01:08:25 UTC) #5
fdoray
https://codereview.chromium.org/2799743006/diff/1/device/hid/hid_connection_linux.cc File device/hid/hid_connection_linux.cc (right): https://codereview.chromium.org/2799743006/diff/1/device/hid/hid_connection_linux.cc#newcode39 device/hid/hid_connection_linux.cc:39: scoped_refptr<base::SingleThreadTaskRunner> task_runner) s/task_runner/origin_task_runner/? https://codereview.chromium.org/2799743006/diff/1/device/hid/hid_connection_linux.cc#newcode68 device/hid/hid_connection_linux.cc:68: if (static_cast<size_t>(result) != size) ...
3 years, 8 months ago (2017-04-07 20:26:23 UTC) #8
Reilly Grant (use Gerrit)
Addressed feedback
3 years, 8 months ago (2017-04-07 22:10:06 UTC) #11
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2799743006/diff/1/device/hid/hid_connection_linux.cc File device/hid/hid_connection_linux.cc (right): https://codereview.chromium.org/2799743006/diff/1/device/hid/hid_connection_linux.cc#newcode39 device/hid/hid_connection_linux.cc:39: scoped_refptr<base::SingleThreadTaskRunner> task_runner) On 2017/04/07 01:08:24, robliao wrote: > Does ...
3 years, 8 months ago (2017-04-07 22:10:49 UTC) #12
robliao
lgtm + 2 comments. https://codereview.chromium.org/2799743006/diff/1/device/hid/hid_connection_linux.cc File device/hid/hid_connection_linux.cc (right): https://codereview.chromium.org/2799743006/diff/1/device/hid/hid_connection_linux.cc#newcode39 device/hid/hid_connection_linux.cc:39: scoped_refptr<base::SingleThreadTaskRunner> task_runner) On 2017/04/07 22:10:48, ...
3 years, 8 months ago (2017-04-07 23:24:45 UTC) #15
Reilly Grant (use Gerrit)
Last review comments
3 years, 8 months ago (2017-04-08 00:55:52 UTC) #18
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2799743006/diff/1/device/hid/hid_connection_linux.cc File device/hid/hid_connection_linux.cc (right): https://codereview.chromium.org/2799743006/diff/1/device/hid/hid_connection_linux.cc#newcode39 device/hid/hid_connection_linux.cc:39: scoped_refptr<base::SingleThreadTaskRunner> task_runner) On 2017/04/07 23:24:45, robliao wrote: > On ...
3 years, 8 months ago (2017-04-08 00:57:02 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/2799743006/40001
3 years, 8 months ago (2017-04-08 00:59:59 UTC) #22
commit-bot: I haz the power
3 years, 8 months ago (2017-04-08 01:45:53 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/6a2cc0923f353e6ab781ba7ef21b...

Powered by Google App Engine
This is Rietveld 408576698