Chromium Code Reviews| 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(); |
|
Mattias Nissler (ping if slow)
2012/11/21 09:28:48
What's the effect of this at run time? I'd rather
Lei Zhang
2012/11/21 20:01:09
I don't think we want to put in CHECKs. Let's say
Mattias Nissler (ping if slow)
2012/11/22 08:51:34
All right, you convinced me that returning false i
|
| + return false; |
| + } |
| + |
| delegate_ = delegate; |
| target_ = path; |