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

Unified Diff: content/common/file_path_watcher/file_path_watcher.h

Issue 6697020: Fixed shutdown concurrency issues in FilePathWatcher. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Tested and updated after changes from 6670081 Created 9 years, 9 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
Index: content/common/file_path_watcher/file_path_watcher.h
diff --git a/content/common/file_path_watcher/file_path_watcher.h b/content/common/file_path_watcher/file_path_watcher.h
index 7c784a8bc44fa9777ace5c93f5d1957069a2ee85..8d73b786e69559bdd7e10f3ac1e3f7cc3646c313 100644
--- a/content/common/file_path_watcher/file_path_watcher.h
+++ b/content/common/file_path_watcher/file_path_watcher.h
@@ -40,6 +40,8 @@ class FilePathWatcher {
// by the Mac implementation right now, and must be backed by a CFRunLoop
// based MessagePump. This is usually going to be a MessageLoop of type
// TYPE_UI.
+ // OnFilePathChanged() will be called on the same thread as Watch() is called,
+ // which should have a MessageLoop of TYPE_IO.
bool Watch(const FilePath& path,
Delegate* delegate,
base::MessageLoopProxy* loop) WARN_UNUSED_RESULT;

Powered by Google App Engine
This is Rietveld 408576698