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

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 dcheng #33 (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();
}

Powered by Google App Engine
This is Rietveld 408576698