Index: base/files/file_path_watcher_linux.cc |
diff --git a/base/files/file_path_watcher_linux.cc b/base/files/file_path_watcher_linux.cc |
index b4a71360e75c807e43163557968269e769122b65..5b32b192ad1c4754a3c200e8256002434d416414 100644 |
--- a/base/files/file_path_watcher_linux.cc |
+++ b/base/files/file_path_watcher_linux.cc |
@@ -100,6 +100,7 @@ class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate, |
// Start watching |path| for changes and notify |delegate| on each change. |
// Returns true if watch for |path| has been added successfully. |
virtual bool Watch(const FilePath& path, |
+ bool recursive, |
FilePathWatcher::Delegate* delegate) OVERRIDE; |
// Cancel the watch. This unregisters the instance with InotifyReader. |
@@ -361,9 +362,14 @@ void FilePathWatcherImpl::OnFilePathChanged(InotifyReader::Watch fired_watch, |
} |
bool FilePathWatcherImpl::Watch(const FilePath& path, |
+ bool recursive, |
FilePathWatcher::Delegate* delegate) { |
DCHECK(target_.empty()); |
DCHECK(MessageLoopForIO::current()); |
+ if (recursive) { |
+ NOTIMPLEMENTED(); |
+ return false; |
+ } |
set_message_loop(base::MessageLoopProxy::current()); |
delegate_ = delegate; |