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

Unified Diff: chrome/browser/file_watcher_mac.cc

Issue 2868114: Rework FileWatcher to avoid race condition upon deletion. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Add missing return... Created 10 years, 4 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
« no previous file with comments | « chrome/browser/file_watcher_inotify.cc ('k') | chrome/browser/file_watcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/file_watcher_mac.cc
diff --git a/chrome/browser/file_watcher_mac.cc b/chrome/browser/file_watcher_mac.cc
index 638654ce8e73b26b110dacb2c45e42f5d646d38e..9bd6d2e20e8fdb331d631905d8d2c1a8751d0fae 100644
--- a/chrome/browser/file_watcher_mac.cc
+++ b/chrome/browser/file_watcher_mac.cc
@@ -76,7 +76,7 @@ class FileWatcherImpl : public FileWatcher::PlatformDelegate {
private:
// Delegate to notify upon changes.
- FileWatcher::Delegate* delegate_;
+ scoped_refptr<FileWatcher::Delegate> delegate_;
// Path we're watching (passed to delegate).
FilePath path_;
« no previous file with comments | « chrome/browser/file_watcher_inotify.cc ('k') | chrome/browser/file_watcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698