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

Issue 2517323002: Remove destruction observer from base::FilePathWatcherKQueue. (Closed)

Created:
4 years, 1 month ago by fdoray
Modified:
4 years ago
Reviewers:
Mark Mentovai, dcheng
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove destruction observer from base::FilePathWatcherKQueue. Now that FilePathWatcher::~FilePathWatcher() is called on the same sequence as FilePathWatcher::Watch() (see https://codereview.chromium.org/2438913003/), the work done in FilePathWatcherKQueue::WillDestroyCurrentMessageLoop() can safely be moved to FilePathWatcherKQueue::Cancel(). BUG=650318 Committed: https://crrev.com/52e11d48575954e29aa9407c4343d76f0475327a Cr-Commit-Position: refs/heads/master@{#435092}

Patch Set 1 #

Total comments: 6

Patch Set 2 : document that this must be called from a thread that supports FileDescriptorWatcher #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -39 lines) Patch
M base/files/file_path_watcher.h View 1 1 chunk +6 lines, -3 lines 0 comments Download
M base/files/file_path_watcher_kqueue.h View 3 chunks +1 line, -9 lines 0 comments Download
M base/files/file_path_watcher_kqueue.cc View 5 chunks +13 lines, -27 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
fdoray
PTAL
4 years, 1 month ago (2016-11-22 13:17:28 UTC) #6
dcheng
https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h File base/files/file_path_watcher.h (right): https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h#newcode98 base/files/file_path_watcher.h:98: // FileDescriptorWatcher when |recursive| is false. I don't understand ...
4 years, 1 month ago (2016-11-23 02:14:25 UTC) #7
fdoray
https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h File base/files/file_path_watcher.h (right): https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h#newcode98 base/files/file_path_watcher.h:98: // FileDescriptorWatcher when |recursive| is false. On 2016/11/23 02:14:25, ...
4 years ago (2016-11-23 12:58:37 UTC) #8
dcheng
https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h File base/files/file_path_watcher.h (right): https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h#newcode98 base/files/file_path_watcher.h:98: // FileDescriptorWatcher when |recursive| is false. On 2016/11/23 12:58:37, ...
4 years ago (2016-11-23 14:16:11 UTC) #9
fdoray
https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h File base/files/file_path_watcher.h (right): https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h#newcode98 base/files/file_path_watcher.h:98: // FileDescriptorWatcher when |recursive| is false. On 2016/11/23 14:16:11, ...
4 years ago (2016-11-23 16:21:41 UTC) #10
dcheng
I'm OK with this, but perhaps get a Mac person to sign off on this?
4 years ago (2016-11-23 19:22:47 UTC) #11
dcheng
(i.e. thakis or mark)
4 years ago (2016-11-23 19:22:56 UTC) #12
fdoray
mark@: Could we get rid of FilePathWatcherKQueue? See discussion here https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h#newcode98
4 years ago (2016-11-23 20:21:53 UTC) #13
fdoray
mark@: Could we get rid of FilePathWatcherKQueue? See discussion here https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h#newcode98
4 years ago (2016-11-23 20:22:20 UTC) #15
Mark Mentovai
https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h File base/files/file_path_watcher.h (right): https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h#newcode98 base/files/file_path_watcher.h:98: // FileDescriptorWatcher when |recursive| is false. On 2016/11/23 16:21:41, ...
4 years ago (2016-11-29 19:00:22 UTC) #16
fdoray
https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h File base/files/file_path_watcher.h (right): https://codereview.chromium.org/2517323002/diff/1/base/files/file_path_watcher.h#newcode98 base/files/file_path_watcher.h:98: // FileDescriptorWatcher when |recursive| is false. On 2016/11/29 19:00:22, ...
4 years ago (2016-11-29 19:09:47 UTC) #17
Mark Mentovai
That sounds fine to me.
4 years ago (2016-11-29 19:22:54 UTC) #18
fdoray
mark@: PTAL
4 years ago (2016-11-29 19:40:22 UTC) #19
Mark Mentovai
LGTM
4 years ago (2016-11-29 19:43:01 UTC) #21
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/2517323002/20001
4 years ago (2016-11-29 20:03:11 UTC) #23
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-29 22:20:36 UTC) #26
commit-bot: I haz the power
4 years ago (2016-11-29 22:24:55 UTC) #28
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/52e11d48575954e29aa9407c4343d76f0475327a
Cr-Commit-Position: refs/heads/master@{#435092}

Powered by Google App Engine
This is Rietveld 408576698