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

Issue 2353103002: Use FileDescriptorWatcher in FilePathWatcherKQueue. (Closed)

Created:
4 years, 3 months ago by fdoray
Modified:
4 years, 2 months ago
Reviewers:
pastarmovj, dcheng
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use FileDescriptorWatcher in FilePathWatcherKQueue. This allows FilePathWatcherKQueue to be used from any thread that instantiates a FileDescriptorWatcher (not just threads that run a MessageLoopForIO). This will facilitate the migration of BrowserThreads to base/task_scheduler. BUG=645114 Committed: https://crrev.com/a0e4a7ead3bae88770f4352e2dd927998238b9ee Cr-Commit-Position: refs/heads/master@{#422243}

Patch Set 1 #

Total comments: 3

Patch Set 2 : rebase #

Patch Set 3 : CR dcheng #7 #

Patch Set 4 : self-review #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : fix test errors #

Patch Set 8 : rebase #

Patch Set 9 : fix windows build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -84 lines) Patch
M base/files/file_path_watcher_kqueue.h View 1 2 3 4 5 6 4 chunks +10 lines, -7 lines 0 comments Download
M base/files/file_path_watcher_kqueue.cc View 1 2 3 3 chunks +66 lines, -75 lines 0 comments Download
M components/policy/core/common/configuration_policy_provider_test.h View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -1 line 0 comments Download
M components/policy/core/common/configuration_policy_provider_test.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 34 (23 generated)
fdoray
PTAL
4 years, 3 months ago (2016-09-20 19:41:17 UTC) #6
dcheng
LGTM with comment addressed. https://codereview.chromium.org/2353103002/diff/1/base/files/file_path_watcher_kqueue.cc File base/files/file_path_watcher_kqueue.cc (right): https://codereview.chromium.org/2353103002/diff/1/base/files/file_path_watcher_kqueue.cc#newcode275 base/files/file_path_watcher_kqueue.cc:275: Bind(&FilePathWatcherKQueue::OnKQueueReadable, Unretained(this))); |this| is refcounted, ...
4 years, 3 months ago (2016-09-20 23:22:04 UTC) #7
fdoray
https://codereview.chromium.org/2353103002/diff/1/base/files/file_path_watcher_kqueue.cc File base/files/file_path_watcher_kqueue.cc (right): https://codereview.chromium.org/2353103002/diff/1/base/files/file_path_watcher_kqueue.cc#newcode275 base/files/file_path_watcher_kqueue.cc:275: Bind(&FilePathWatcherKQueue::OnKQueueReadable, Unretained(this))); On 2016/09/20 23:22:04, dcheng wrote: > |this| ...
4 years, 2 months ago (2016-09-26 14:32:02 UTC) #8
dcheng
Still LGTM https://codereview.chromium.org/2353103002/diff/1/base/files/file_path_watcher_kqueue.cc File base/files/file_path_watcher_kqueue.cc (right): https://codereview.chromium.org/2353103002/diff/1/base/files/file_path_watcher_kqueue.cc#newcode275 base/files/file_path_watcher_kqueue.cc:275: Bind(&FilePathWatcherKQueue::OnKQueueReadable, Unretained(this))); On 2016/09/26 14:32:02, fdoray wrote: ...
4 years, 2 months ago (2016-09-29 18:06:53 UTC) #21
fdoray
pastarmovj@chromium.org: PTAL at components/policy
4 years, 2 months ago (2016-09-29 18:20:49 UTC) #23
pastarmovj
lgtm
4 years, 2 months ago (2016-09-30 08:01:38 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/2353103002/140001
4 years, 2 months ago (2016-09-30 20:36:27 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/289808)
4 years, 2 months ago (2016-09-30 21:07:40 UTC) #28
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/2353103002/160001
4 years, 2 months ago (2016-09-30 21:28:16 UTC) #31
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 2 months ago (2016-09-30 22:27:51 UTC) #32
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 22:31:13 UTC) #34
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/a0e4a7ead3bae88770f4352e2dd927998238b9ee
Cr-Commit-Position: refs/heads/master@{#422243}

Powered by Google App Engine
This is Rietveld 408576698