| Index: base/directory_watcher_win.cc
|
| diff --git a/base/directory_watcher_win.cc b/base/directory_watcher_win.cc
|
| index 6fe6ba54c47332b5089f7e6c5866b5f4099ff2df..f9782779ba4fbdb01bdf997f6123baa76a3cd686 100644
|
| --- a/base/directory_watcher_win.cc
|
| +++ b/base/directory_watcher_win.cc
|
| @@ -43,9 +43,11 @@ DirectoryWatcher::Impl::~Impl() {
|
| bool DirectoryWatcher::Impl::Watch(const FilePath& path) {
|
| DCHECK(path_.value().empty()); // Can only watch one path.
|
|
|
| + // NOTE: If you want to change this code to *not* watch subdirectories, have a
|
| + // look at http://code.google.com/p/chromium/issues/detail?id=5072 first.
|
| handle_ = FindFirstChangeNotification(
|
| path.value().c_str(),
|
| - FALSE, // Don't watch subtree.
|
| + TRUE, // Watch subtree.
|
| FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_SIZE |
|
| FILE_NOTIFY_CHANGE_LAST_WRITE);
|
| if (handle_ == INVALID_HANDLE_VALUE)
|
|
|