Chromium Code Reviews| 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..98da0eb6ea0ba249f49c025e16ebf6b1e8a0e29b 100644 |
| --- a/base/files/file_path_watcher.cc |
| +++ b/base/files/file_path_watcher.cc |
| @@ -50,9 +50,10 @@ void FilePathWatcher::CancelWatch( |
| delegate->CancelOnMessageLoopThread(); |
| } |
| -bool FilePathWatcher::Watch(const FilePath& path, Delegate* delegate) { |
| +bool FilePathWatcher::Watch(const FilePath& path, bool recursive, |
|
Mattias Nissler (ping if slow)
2012/11/21 09:28:48
parameter decls on separate lines
kmadhusu
2012/11/22 01:39:41
Done.
|
| + Delegate* delegate) { |
| DCHECK(path.IsAbsolute()); |
| - return impl_->Watch(path, delegate); |
| + return impl_->Watch(path, recursive, delegate); |
| } |
| FilePathWatcher::PlatformDelegate::PlatformDelegate(): cancelled_(false) { |
| @@ -62,8 +63,9 @@ 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, |
|
Mattias Nissler (ping if slow)
2012/11/21 09:28:48
ditto
kmadhusu
2012/11/22 01:39:41
Done.
|
| + const Callback& callback) { |
| + return Watch(path, recursive, new FilePathWatcherDelegate(callback)); |
| } |
| } // namespace files |