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

Unified Diff: base/files/file_path_watcher_win.cc

Issue 2438913003: Require FilePathWatcher destructor to be called in sequence with Watch(). (Closed)
Patch Set: CR thestig #36 (fix comment) Created 4 years, 1 month 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: base/files/file_path_watcher_win.cc
diff --git a/base/files/file_path_watcher_win.cc b/base/files/file_path_watcher_win.cc
index 3bbf2fba5037524fd05125535936da6061183420..48470b6b3dbb05381a6cde56d47bdcc53dbcc211 100644
--- a/base/files/file_path_watcher_win.cc
+++ b/base/files/file_path_watcher_win.cc
@@ -296,6 +296,7 @@ void FilePathWatcherImpl::DestroyWatch() {
} // namespace
FilePathWatcher::FilePathWatcher() {
+ sequence_checker_.DetachFromSequence();
impl_ = new FilePathWatcherImpl();
}
« no previous file with comments | « base/files/file_path_watcher_unittest.cc ('k') | chrome/browser/media_galleries/fileapi/file_path_watcher_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698