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

Issue 11415066: FilePathWatcher::Watch() - Listen for sub directory changes. (Closed)

Created:
8 years, 1 month ago by kmadhusu
Modified:
8 years ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

(1) Added a recursive boolean param to FilePathWatcher::Watch() function to watch for sub directory tree changes. Fixed all the calling sites. (2) Added support to watch sub trees on Windows. (3) Added FilePathWatcherTest.RecursiveWatch browser test. BUG=144491 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171097

Patch Set 1 #

Patch Set 2 : Added a recursive boolean param to FilePathWatcher::Watch() and added a browser test. #

Patch Set 3 : Fixed compile errors. #

Patch Set 4 : Fix mac compile error. #

Total comments: 14

Patch Set 5 : Addressed review comments. #

Total comments: 13

Patch Set 6 : Addressed review comments #

Total comments: 4

Patch Set 7 : '' #

Total comments: 6

Patch Set 8 : Fixed comments #

Total comments: 2

Patch Set 9 : Added more test cases #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -58 lines) Patch
M base/files/file_path_watcher.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -3 lines 0 comments Download
M base/files/file_path_watcher.cc View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M base/files/file_path_watcher_browsertest.cc View 1 2 3 4 5 6 7 8 28 chunks +101 lines, -31 lines 0 comments Download
M base/files/file_path_watcher_kqueue.cc View 1 2 3 4 5 3 chunks +9 lines, -0 lines 0 comments Download
M base/files/file_path_watcher_linux.cc View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M base/files/file_path_watcher_stub.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/files/file_path_watcher_win.cc View 1 2 3 4 7 chunks +22 lines, -10 lines 0 comments Download
M chrome/browser/policy/config_dir_policy_loader.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_loader_mac.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_linux.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M net/dns/dns_config_service_posix.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M net/dns/dns_config_service_win.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M remoting/host/config_file_watcher.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
kmadhusu
mnissler@: Is there any specific reason why we are not listening for sub tree changes? ...
8 years, 1 month ago (2012-11-20 02:58:03 UTC) #1
Lei Zhang
On 2012/11/20 02:58:03, kmadhusu wrote: > mnissler@: Is there any specific reason why we are ...
8 years, 1 month ago (2012-11-20 03:48:12 UTC) #2
Lei Zhang
What we want to do is implement FilePathWatcher::RecursiveWatch() or change FilePathWatcher::Watch() to take a recursive ...
8 years, 1 month ago (2012-11-20 03:53:03 UTC) #3
Mattias Nissler (ping if slow)
On 2012/11/20 03:53:03, Lei Zhang wrote: > What we want to do is implement FilePathWatcher::RecursiveWatch() ...
8 years, 1 month ago (2012-11-20 09:25:16 UTC) #4
kmadhusu
mnissler@, thestig@: Thanks for your suggestions. Added a recursive boolean param to FilePathWatcher::Watch() and fixed ...
8 years, 1 month ago (2012-11-21 01:41:33 UTC) #5
Lei Zhang
On 2012/11/20 09:25:16, Mattias Nissler wrote: > On 2012/11/20 03:53:03, Lei Zhang wrote: > > ...
8 years, 1 month ago (2012-11-21 02:49:37 UTC) #6
Lei Zhang
https://codereview.chromium.org/11415066/diff/8003/base/files/file_path_watcher.h File base/files/file_path_watcher.h (right): https://codereview.chromium.org/11415066/diff/8003/base/files/file_path_watcher.h#newcode119 base/files/file_path_watcher.h:119: virtual bool Watch(const FilePath& path, bool recursive, Delegate* delegate) ...
8 years, 1 month ago (2012-11-21 03:36:48 UTC) #7
kmadhusu
thestig@: Addressed review comments. PTAL. Thanks. https://codereview.chromium.org/11415066/diff/8003/base/files/file_path_watcher.h File base/files/file_path_watcher.h (right): https://codereview.chromium.org/11415066/diff/8003/base/files/file_path_watcher.h#newcode119 base/files/file_path_watcher.h:119: virtual bool Watch(const ...
8 years, 1 month ago (2012-11-21 04:13:26 UTC) #8
Lei Zhang
It would be good to test file modification too. https://codereview.chromium.org/11415066/diff/8003/base/files/file_path_watcher.h File base/files/file_path_watcher.h (right): https://codereview.chromium.org/11415066/diff/8003/base/files/file_path_watcher.h#newcode119 base/files/file_path_watcher.h:119: ...
8 years, 1 month ago (2012-11-21 04:21:02 UTC) #9
Mattias Nissler (ping if slow)
https://codereview.chromium.org/11415066/diff/13001/base/files/file_path_watcher.cc File base/files/file_path_watcher.cc (right): https://codereview.chromium.org/11415066/diff/13001/base/files/file_path_watcher.cc#newcode53 base/files/file_path_watcher.cc:53: bool FilePathWatcher::Watch(const FilePath& path, bool recursive, parameter decls on ...
8 years, 1 month ago (2012-11-21 09:28:48 UTC) #10
Lei Zhang
https://codereview.chromium.org/11415066/diff/13001/base/files/file_path_watcher_kqueue.cc File base/files/file_path_watcher_kqueue.cc (right): https://codereview.chromium.org/11415066/diff/13001/base/files/file_path_watcher_kqueue.cc#newcode441 base/files/file_path_watcher_kqueue.cc:441: NOTIMPLEMENTED(); On 2012/11/21 09:28:48, Mattias Nissler wrote: > What's ...
8 years, 1 month ago (2012-11-21 20:01:08 UTC) #11
kmadhusu
On 2012/11/21 20:01:08, Lei Zhang wrote: > https://codereview.chromium.org/11415066/diff/13001/base/files/file_path_watcher_kqueue.cc > File base/files/file_path_watcher_kqueue.cc (right): > > https://codereview.chromium.org/11415066/diff/13001/base/files/file_path_watcher_kqueue.cc#newcode441 ...
8 years, 1 month ago (2012-11-21 20:30:30 UTC) #12
kmadhusu
FilePathWatcher browser test is extensively using the deprecated FilePathWatcher::Watch() function. I will submit a separate ...
8 years, 1 month ago (2012-11-22 01:39:41 UTC) #13
Mattias Nissler (ping if slow)
I wasn't sure whether I should re-review, and then I understood you'd be porting the ...
8 years, 1 month ago (2012-11-22 08:51:34 UTC) #14
kmadhusu
On 2012/11/22 08:51:34, Mattias Nissler wrote: > I wasn't sure whether I should re-review, and ...
8 years ago (2012-11-26 17:36:32 UTC) #15
kmadhusu
Rebased and addressed review comments. Fixed browser tests. PTAL. Thanks. https://codereview.chromium.org/11415066/diff/1024/base/files/file_path_watcher.cc File base/files/file_path_watcher.cc (right): https://codereview.chromium.org/11415066/diff/1024/base/files/file_path_watcher.cc#newcode53 ...
8 years ago (2012-12-03 20:11:35 UTC) #16
Lei Zhang
https://codereview.chromium.org/11415066/diff/6009/base/files/file_path_watcher.h File base/files/file_path_watcher.h (right): https://codereview.chromium.org/11415066/diff/6009/base/files/file_path_watcher.h#newcode127 base/files/file_path_watcher.h:127: // NOTE: Recursive watch is not supported on all ...
8 years ago (2012-12-03 21:44:39 UTC) #17
kmadhusu
https://codereview.chromium.org/11415066/diff/6009/base/files/file_path_watcher.h File base/files/file_path_watcher.h (right): https://codereview.chromium.org/11415066/diff/6009/base/files/file_path_watcher.h#newcode127 base/files/file_path_watcher.h:127: // NOTE: Recursive watch is not supported on all ...
8 years ago (2012-12-03 22:54:56 UTC) #18
Lei Zhang
https://codereview.chromium.org/11415066/diff/6009/base/files/file_path_watcher.h File base/files/file_path_watcher.h (right): https://codereview.chromium.org/11415066/diff/6009/base/files/file_path_watcher.h#newcode127 base/files/file_path_watcher.h:127: // NOTE: Recursive watch is not supported on all ...
8 years ago (2012-12-03 23:16:20 UTC) #19
kmadhusu
https://codereview.chromium.org/11415066/diff/6009/base/files/file_path_watcher.h File base/files/file_path_watcher.h (right): https://codereview.chromium.org/11415066/diff/6009/base/files/file_path_watcher.h#newcode127 base/files/file_path_watcher.h:127: // NOTE: Recursive watch is not supported on all ...
8 years ago (2012-12-04 00:06:36 UTC) #20
Lei Zhang
lgtm
8 years ago (2012-12-04 00:28:46 UTC) #21
Mattias Nissler (ping if slow)
One test I'd like to see added, otherwise LGTM. https://codereview.chromium.org/11415066/diff/14017/base/files/file_path_watcher_browsertest.cc File base/files/file_path_watcher_browsertest.cc (right): https://codereview.chromium.org/11415066/diff/14017/base/files/file_path_watcher_browsertest.cc#newcode540 base/files/file_path_watcher_browsertest.cc:540: ...
8 years ago (2012-12-04 09:27:35 UTC) #22
kmadhusu
https://codereview.chromium.org/11415066/diff/14017/base/files/file_path_watcher_browsertest.cc File base/files/file_path_watcher_browsertest.cc (right): https://codereview.chromium.org/11415066/diff/14017/base/files/file_path_watcher_browsertest.cc#newcode540 base/files/file_path_watcher_browsertest.cc:540: ASSERT_TRUE(WaitForEvents()); On 2012/12/04 09:27:35, Mattias Nissler wrote: > Can ...
8 years ago (2012-12-04 18:47:05 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/11415066/13004
8 years ago (2012-12-04 18:51:03 UTC) #24
commit-bot: I haz the power
Presubmit check for 11415066-13004 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-04 18:51:10 UTC) #25
kmadhusu
szym@: Can you do OWNER's check for net/ changes? alexeypa@: Can you do OWNER's check ...
8 years ago (2012-12-04 19:02:39 UTC) #26
szym
net/dns/ changes LGTM
8 years ago (2012-12-04 19:15:48 UTC) #27
alexeypa (please no reviews)
remoting/* - lgtm
8 years ago (2012-12-04 19:19:53 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/11415066/13004
8 years ago (2012-12-04 19:30:58 UTC) #29
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
8 years ago (2012-12-04 19:40:16 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/11415066/13004
8 years ago (2012-12-04 20:32:51 UTC) #31
commit-bot: I haz the power
8 years ago (2012-12-05 00:36:41 UTC) #32
Message was sent while issue was closed.
Change committed as 171097

Powered by Google App Engine
This is Rietveld 408576698