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

Unified Diff: base/files/file_path_watcher_stub.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_stub.cc
diff --git a/base/files/file_path_watcher_stub.cc b/base/files/file_path_watcher_stub.cc
index c637e3c0fe1dd04abd3c43e15c37e0c58388241e..c224e379f3754e86f938c6b4ef0815b1d798161d 100644
--- a/base/files/file_path_watcher_stub.cc
+++ b/base/files/file_path_watcher_stub.cc
@@ -28,6 +28,7 @@ class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate {
} // namespace
FilePathWatcher::FilePathWatcher() {
+ sequence_checker_.DetachFromSequence();
impl_ = new FilePathWatcherImpl();
}

Powered by Google App Engine
This is Rietveld 408576698