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

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

Created:
6 years, 7 months ago by vandebo (ex-Chrome)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, vandebo (ex-Chrome), nkostylev+watch_chromium.org, tzik, yoshiki+watch_chromium.org, rginda+watch_chromium.org, dmazzoni+watch_chromium.org, kinuko+watch, stevenjb+watch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, aboxhall+watch_chromium.org, chromoting-reviews_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, erikwright+watch_chromium.org, Greg Billock, yuzo+watch_chromium.org, nhiroki, oshima+watch_chromium.org, plundblad+watch_chromium.org, Lei Zhang, tfarina, tommycli, dtseng+watch_chromium.org, davemoore+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=274735

Patch Set 1 #

Patch Set 2 : checkpoint #

Patch Set 3 : nits #

Total comments: 18

Patch Set 4 : comments #

Patch Set 5 : Fix iOS #

Patch Set 6 : another #

Total comments: 12

Patch Set 7 : comments #

Patch Set 8 : fix win compile #

Total comments: 4

Patch Set 9 : Add comments #

Patch Set 10 : Fix the wrapper #

Patch Set 11 : fix dcheck #

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

Messages

Total messages: 26 (0 generated)
vandebo (ex-Chrome)
6 years, 7 months ago (2014-05-23 23:23:59 UTC) #1
Mattias Nissler (ping if slow)
https://codereview.chromium.org/283423003/diff/80001/base/files/file_path_watcher_fsevents.cc File base/files/file_path_watcher_fsevents.cc (right): https://codereview.chromium.org/283423003/diff/80001/base/files/file_path_watcher_fsevents.cc#newcode13 base/files/file_path_watcher_fsevents.cc:13: #include "base/memory/singleton.h" used? https://codereview.chromium.org/283423003/diff/80001/base/files/file_path_watcher_fsevents.cc#newcode48 base/files/file_path_watcher_fsevents.cc:48: result = result.Append(target); Don't ...
6 years, 7 months ago (2014-05-26 07:39:36 UTC) #2
vandebo (ex-Chrome)
https://codereview.chromium.org/283423003/diff/80001/base/files/file_path_watcher_fsevents.cc File base/files/file_path_watcher_fsevents.cc (right): https://codereview.chromium.org/283423003/diff/80001/base/files/file_path_watcher_fsevents.cc#newcode13 base/files/file_path_watcher_fsevents.cc:13: #include "base/memory/singleton.h" On 2014/05/26 07:39:37, Mattias Nissler wrote: > ...
6 years, 7 months ago (2014-05-28 00:26:55 UTC) #3
Mattias Nissler (ping if slow)
LGTM w/ nits (in case I'm missing something with symlink resolution needing to be performed ...
6 years, 7 months ago (2014-05-28 08:08:31 UTC) #4
vandebo (ex-Chrome)
On 2014/05/28 08:08:31, Mattias Nissler wrote: > LGTM w/ nits (in case I'm missing something ...
6 years, 6 months ago (2014-05-28 18:54:52 UTC) #5
vandebo (ex-Chrome)
+Brett for build files.
6 years, 6 months ago (2014-05-28 18:55:33 UTC) #6
brettw
LGTM, I didn't check the code. https://codereview.chromium.org/283423003/diff/160001/base/files/file_path_watcher_fsevents.h File base/files/file_path_watcher_fsevents.h (right): https://codereview.chromium.org/283423003/diff/160001/base/files/file_path_watcher_fsevents.h#newcode17 base/files/file_path_watcher_fsevents.h:17: // There are ...
6 years, 6 months ago (2014-05-28 20:55:27 UTC) #7
vandebo (ex-Chrome)
https://codereview.chromium.org/283423003/diff/160001/base/files/file_path_watcher_fsevents.h File base/files/file_path_watcher_fsevents.h (right): https://codereview.chromium.org/283423003/diff/160001/base/files/file_path_watcher_fsevents.h#newcode17 base/files/file_path_watcher_fsevents.h:17: // There are trade-offs between the FSEvents implementation and ...
6 years, 6 months ago (2014-05-28 21:14:55 UTC) #8
Mattias Nissler (ping if slow)
LGTM still.
6 years, 6 months ago (2014-05-30 15:47:18 UTC) #9
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 6 months ago (2014-05-30 15:51:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/283423003/200001
6 years, 6 months ago (2014-05-30 15:53:11 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu_retina_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-05-31 01:16:48 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-31 01:21:16 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu_triggered_tests/builds/9474)
6 years, 6 months ago (2014-05-31 01:21:16 UTC) #14
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 6 months ago (2014-06-02 20:52:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/283423003/200001
6 years, 6 months ago (2014-06-02 20:53:35 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu_retina_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-03 04:07:19 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-03 04:09:36 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu_triggered_tests/builds/10158)
6 years, 6 months ago (2014-06-03 04:09:37 UTC) #19
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 6 months ago (2014-06-03 18:01:00 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/283423003/220001
6 years, 6 months ago (2014-06-03 18:02:30 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-03 22:02:40 UTC) #22
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 6 months ago (2014-06-03 23:37:14 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/283423003/240001
6 years, 6 months ago (2014-06-03 23:38:43 UTC) #24
commit-bot: I haz the power
Change committed as 274735
6 years, 6 months ago (2014-06-04 09:02:40 UTC) #25
dconnelly
6 years, 6 months ago (2014-06-04 10:18:50 UTC) #26
Message was sent while issue was closed.
On 2014/06/04 09:02:40, I haz the power (commit-bot) wrote:
> Change committed as 274735

Reverted for breaking Mac tests: https://codereview.chromium.org/316853003/

Powered by Google App Engine
This is Rietveld 408576698