Index: base/files/file_path_watcher_kqueue.cc |
diff --git a/base/files/file_path_watcher_kqueue.cc b/base/files/file_path_watcher_kqueue.cc |
index 6221a62f379e2385dadabca22de0893451c92068..251a172815f8ef49eaf8585c5d7342e8dbd8adea 100644 |
--- a/base/files/file_path_watcher_kqueue.cc |
+++ b/base/files/file_path_watcher_kqueue.cc |
@@ -12,6 +12,7 @@ |
#include "base/bind.h" |
#include "base/file_util.h" |
+#include "base/logging.h" |
#include "base/message_loop.h" |
#include "base/message_loop_proxy.h" |
#include "base/stringprintf.h" |
@@ -64,6 +65,7 @@ class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate, |
// FilePathWatcher::PlatformDelegate overrides. |
virtual bool Watch(const FilePath& path, |
+ bool recursive, |
FilePathWatcher::Delegate* delegate) OVERRIDE; |
virtual void Cancel() OVERRIDE; |
@@ -428,12 +430,18 @@ void FilePathWatcherImpl::WillDestroyCurrentMessageLoop() { |
} |
bool FilePathWatcherImpl::Watch(const FilePath& path, |
+ bool recursive, |
FilePathWatcher::Delegate* delegate) { |
DCHECK(MessageLoopForIO::current()); |
DCHECK(target_.value().empty()); // Can only watch one path. |
DCHECK(delegate); |
DCHECK_EQ(kqueue_, -1); |
+ if (recursive) { |
+ NOTIMPLEMENTED(); |
+ return false; |
+ } |
+ |
delegate_ = delegate; |
target_ = path; |