Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1943)

Unified Diff: base/directory_watcher_win.cc

Issue 18198: Add user script support to extensions. (Closed)
Patch Set: Compile fixes for linux and mac Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/directory_watcher_unittest.cc ('k') | chrome/browser/browser_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « base/directory_watcher_unittest.cc ('k') | chrome/browser/browser_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698