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

Unified Diff: base/directory_watcher_win.cc

Issue 42388: Enable non-recursive watches for Windows DirectoryWatcher.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: fix the typo Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/directory_watcher_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/directory_watcher_win.cc
diff --git a/base/directory_watcher_win.cc b/base/directory_watcher_win.cc
index a1e3ff7564be222af5dbee236a1d68d535024bf2..883c3244219e4ca207daa769ef4a3e66c74f24fd 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)
« no previous file with comments | « base/directory_watcher_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698