diff options
Diffstat (limited to 'base/directory_watcher_win.cc')
-rw-r--r-- | base/directory_watcher_win.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/base/directory_watcher_win.cc b/base/directory_watcher_win.cc index a1e3ff7..883c324 100644 --- a/base/directory_watcher_win.cc +++ b/base/directory_watcher_win.cc @@ -47,15 +47,9 @@ bool DirectoryWatcherImpl::Watch(const FilePath& path, DirectoryWatcher::Delegate* delegate, bool recursive) { DCHECK(path_.value().empty()); // Can only watch one path. - if (!recursive) { - // See http://crbug.com/5072. - NOTIMPLEMENTED(); - return false; - } - handle_ = FindFirstChangeNotification( path.value().c_str(), - TRUE, // Watch subtree. + recursive, FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_SIZE | FILE_NOTIFY_CHANGE_LAST_WRITE); if (handle_ == INVALID_HANDLE_VALUE) |