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

Issue 313083007: Use FSEvents for recursive file watch on Mac (Closed)

Created:
6 years, 6 months ago by vandebo (ex-Chrome)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Use FSEvents for recursive file watch on Mac Brings back the old FSEvents code, changing it to support recursive watches only, and use dispatch queues instead of using the CFRunLoop from the UI thread. BUG=144491 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276289

Patch Set 1 #

Patch Set 2 : Don't do recursion on Mac 10.6 #

Patch Set 3 : missing ; #

Total comments: 14

Patch Set 4 : comments #

Patch Set 5 : Undo realpath() #

Patch Set 6 : include fix for iOS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+652 lines, -165 lines) Patch
M base/BUILD.gn View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M base/base.gypi View 1 2 3 7 chunks +22 lines, -0 lines 0 comments Download
M base/files/file_path_watcher.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M base/files/file_path_watcher.cc View 1 2 3 4 5 2 chunks +17 lines, -0 lines 0 comments Download
M base/files/file_path_watcher_browsertest.cc View 1 2 3 4 3 chunks +47 lines, -12 lines 0 comments Download
A base/files/file_path_watcher_fsevents.h View 1 chunk +73 lines, -0 lines 0 comments Download
A base/files/file_path_watcher_fsevents.cc View 1 2 3 4 1 chunk +263 lines, -0 lines 0 comments Download
A base/files/file_path_watcher_kqueue.h View 1 chunk +132 lines, -0 lines 0 comments Download
M base/files/file_path_watcher_kqueue.cc View 13 chunks +22 lines, -151 lines 0 comments Download
M base/files/file_path_watcher_linux.cc View 1 chunk +1 line, -0 lines 0 comments Download
A base/files/file_path_watcher_mac.cc View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
M base/files/file_path_watcher_win.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
vandebo (ex-Chrome)
Resubmit of https://codereview.chromium.org/283423003/ with recursive watcher tests disabled on 10.6 (because it's not supported).
6 years, 6 months ago (2014-06-04 16:06:53 UTC) #1
Nico
I think Mark and Jeremy are familiar with the FSEvent code (?)
6 years, 6 months ago (2014-06-04 16:16:39 UTC) #2
vandebo (ex-Chrome)
On 2014/06/04 16:16:39, Nico (away) wrote: > I think Mark and Jeremy are familiar with ...
6 years, 6 months ago (2014-06-05 17:05:54 UTC) #3
jeremy
So just changes to base/files/file_path_watcher_browsertest.cc ? It's a weekend here, I'll be happy to take ...
6 years, 6 months ago (2014-06-05 17:48:44 UTC) #4
vandebo (ex-Chrome)
On 2014/06/05 17:48:44, jeremy wrote: > So just changes to base/files/file_path_watcher_browsertest.cc ? Yup. > It's ...
6 years, 6 months ago (2014-06-05 17:52:52 UTC) #5
vandebo (ex-Chrome)
On 2014/06/05 17:52:52, vandebo wrote: > On 2014/06/05 17:48:44, jeremy wrote: > > Any chance ...
6 years, 6 months ago (2014-06-05 19:49:26 UTC) #6
Mark Mentovai
https://codereview.chromium.org/313083007/diff/40001/base/files/file_path_watcher_fsevents.cc File base/files/file_path_watcher_fsevents.cc (right): https://codereview.chromium.org/313083007/diff/40001/base/files/file_path_watcher_fsevents.cc#newcode27 base/files/file_path_watcher_fsevents.cc:27: : mac::LibDispatchTaskRunner("chromium.org.FilePathWatcherFSEvents") { These should be reverse DNS: org.chromium.whatever. ...
6 years, 6 months ago (2014-06-08 15:29:02 UTC) #7
vandebo (ex-Chrome)
https://codereview.chromium.org/313083007/diff/40001/base/files/file_path_watcher_fsevents.cc File base/files/file_path_watcher_fsevents.cc (right): https://codereview.chromium.org/313083007/diff/40001/base/files/file_path_watcher_fsevents.cc#newcode27 base/files/file_path_watcher_fsevents.cc:27: : mac::LibDispatchTaskRunner("chromium.org.FilePathWatcherFSEvents") { On 2014/06/08 15:29:02, Mark Mentovai wrote: ...
6 years, 6 months ago (2014-06-10 00:52:06 UTC) #8
vandebo (ex-Chrome)
https://codereview.chromium.org/313083007/diff/40001/base/files/file_path_watcher_fsevents.cc File base/files/file_path_watcher_fsevents.cc (right): https://codereview.chromium.org/313083007/diff/40001/base/files/file_path_watcher_fsevents.cc#newcode38 base/files/file_path_watcher_fsevents.cc:38: FilePath ResolvePath(const FilePath& path) { On 2014/06/10 00:52:06, vandebo ...
6 years, 6 months ago (2014-06-10 17:19:30 UTC) #9
Robert Sesek
https://codereview.chromium.org/313083007/diff/40001/base/files/file_path_watcher_fsevents.cc File base/files/file_path_watcher_fsevents.cc (right): https://codereview.chromium.org/313083007/diff/40001/base/files/file_path_watcher_fsevents.cc#newcode27 base/files/file_path_watcher_fsevents.cc:27: : mac::LibDispatchTaskRunner("chromium.org.FilePathWatcherFSEvents") { On 2014/06/10 00:52:05, vandebo wrote: > ...
6 years, 6 months ago (2014-06-10 21:34:05 UTC) #10
Mark Mentovai
LGTM. I don’t know if Jeremy planned on looking at this.
6 years, 6 months ago (2014-06-10 21:38:09 UTC) #11
vandebo (ex-Chrome)
On 2014/06/10 21:38:09, Mark Mentovai wrote: > LGTM. I don’t know if Jeremy planned on ...
6 years, 6 months ago (2014-06-10 21:41:23 UTC) #12
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 6 months ago (2014-06-10 21:44:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/313083007/100001
6 years, 6 months ago (2014-06-10 21:49:03 UTC) #14
jeremy
Been busy, sorry - if Mark is OK with this then I am too. On ...
6 years, 6 months ago (2014-06-10 22:22:35 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 03:53:51 UTC) #16
commit-bot: I haz the power
6 years, 6 months ago (2014-06-11 07:15:28 UTC) #17
Message was sent while issue was closed.
Change committed as 276289

Powered by Google App Engine
This is Rietveld 408576698