summaryrefslogtreecommitdiffstats
path: root/base/directory_watcher_win.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 15:26:09 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 15:26:09 +0000
commit5c31aa6e312dccfaccf92e237062273bfd995369 (patch)
tree475821ef3934b273bcf2b3a4094f0c431f572270 /base/directory_watcher_win.cc
parent0f43a8f1c138bd8d850a606ff028df8f6c30ba31 (diff)
downloadchromium_src-5c31aa6e312dccfaccf92e237062273bfd995369.zip
chromium_src-5c31aa6e312dccfaccf92e237062273bfd995369.tar.gz
chromium_src-5c31aa6e312dccfaccf92e237062273bfd995369.tar.bz2
Enable non-recursive watches for Windows DirectoryWatcher.
- enable test for it on Windows - clean up directory_watcher_unittest.cc http://crbug.com/5072 Review URL: http://codereview.chromium.org/42388 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12358 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/directory_watcher_win.cc')
-rw-r--r--base/directory_watcher_win.cc8
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)