kmad...@chromium.org
unread,Nov 19, 2012, 9:58:03 PM11/19/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mnis...@chromium.org, chromium...@chromium.org, erikwrig...@chromium.org, the...@chromium.org
Reviewers: Mattias Nissler,
Message:
mnissler@: Is there any specific reason why we are not listening for sub
tree
changes? If this change is fine, I will add a unit test in the next patch.
Thanks.
Description:
[Windows] Listen for sub directory changes.
BUG=144491
TEST=none
Please review this at
https://codereview.chromium.org/11415066/
SVN Base: svn://
svn.chromium.org/chrome/trunk/src
Affected files:
M base/files/file_path_watcher_win.cc
Index: base/files/file_path_watcher_win.cc
diff --git a/base/files/file_path_watcher_win.cc
b/base/files/file_path_watcher_win.cc
index
37b1e7b3f9feeaeef4d37558c8e01fa799f91dba..70374fb5b9cc46fcba76ea9de8a05f0a4e40559f
100644
--- a/base/files/file_path_watcher_win.cc
+++ b/base/files/file_path_watcher_win.cc
@@ -182,7 +182,7 @@ bool FilePathWatcherImpl::SetupWatchHandle(const
FilePath& dir,
HANDLE* handle) {
*handle = FindFirstChangeNotification(
dir.value().c_str(),
- false, // Don't watch subtrees
+ true, // Watch subtrees
FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_SIZE |
FILE_NOTIFY_CHANGE_LAST_WRITE | FILE_NOTIFY_CHANGE_DIR_NAME |
FILE_NOTIFY_CHANGE_ATTRIBUTES | FILE_NOTIFY_CHANGE_SECURITY);