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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/files/file_path_watcher.h" 5 #include "base/files/file_path_watcher.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file.h" 8 #include "base/files/file.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 void FilePathWatcherImpl::DestroyWatch() { 290 void FilePathWatcherImpl::DestroyWatch() {
291 watcher_.StopWatching(); 291 watcher_.StopWatching();
292 FindCloseChangeNotification(handle_); 292 FindCloseChangeNotification(handle_);
293 handle_ = INVALID_HANDLE_VALUE; 293 handle_ = INVALID_HANDLE_VALUE;
294 } 294 }
295 295
296 } // namespace 296 } // namespace
297 297
298 FilePathWatcher::FilePathWatcher() { 298 FilePathWatcher::FilePathWatcher() {
299 sequence_checker_.DetachFromSequence();
299 impl_ = new FilePathWatcherImpl(); 300 impl_ = new FilePathWatcherImpl();
300 } 301 }
301 302
302 } // namespace base 303 } // namespace base
OLDNEW
« 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