Index: base/files/file_path_watcher.cc |
diff --git a/base/files/file_path_watcher.cc b/base/files/file_path_watcher.cc |
index dd2b37fc78d80a937c00afcb803cfc784970047b..bc8db37f1b636881348be5a46a830ec314d7d833 100644 |
--- a/base/files/file_path_watcher.cc |
+++ b/base/files/file_path_watcher.cc |
@@ -52,7 +52,7 @@ void FilePathWatcher::CancelWatch( |
bool FilePathWatcher::Watch(const FilePath& path, Delegate* delegate) { |
DCHECK(path.IsAbsolute()); |
- return impl_->Watch(path, delegate); |
+ return impl_->Watch(path, false, delegate); |
} |
FilePathWatcher::PlatformDelegate::PlatformDelegate(): cancelled_(false) { |
@@ -62,8 +62,11 @@ FilePathWatcher::PlatformDelegate::~PlatformDelegate() { |
DCHECK(is_cancelled()); |
} |
-bool FilePathWatcher::Watch(const FilePath& path, const Callback& callback) { |
- return Watch(path, new FilePathWatcherDelegate(callback)); |
+bool FilePathWatcher::Watch(const FilePath& path, |
+ bool recursive, |
+ const Callback& callback) { |
+ DCHECK(path.IsAbsolute()); |
+ return impl_->Watch(path, recursive, new FilePathWatcherDelegate(callback)); |
} |
} // namespace files |