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

Unified Diff: chrome/browser/media_galleries/fileapi/file_path_watcher_util.h

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: chrome/browser/media_galleries/fileapi/file_path_watcher_util.h
diff --git a/chrome/browser/media_galleries/fileapi/file_path_watcher_util.h b/chrome/browser/media_galleries/fileapi/file_path_watcher_util.h
index 8e512534c8c5d3300086b83daf0c3f71dfff44df..cd3443dd1dd4969f75e385e8ed229a95417185c3 100644
--- a/chrome/browser/media_galleries/fileapi/file_path_watcher_util.h
+++ b/chrome/browser/media_galleries/fileapi/file_path_watcher_util.h
@@ -22,4 +22,9 @@ void StartFilePathWatchOnMediaTaskRunner(
const FileWatchStartedCallback& watch_started_callback,
const base::FilePathWatcher::Callback& path_changed_callback);
+// Stops a file path watch started by StartFilePathWatchOnMediaTaskRunner().
+// Must be called from the MediaTaskRunner.
+void StopFilePathWatchOnMediaTaskRunner(
+ std::unique_ptr<base::FilePathWatcher> watcher);
+
#endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_FILE_PATH_WATCHER_UTIL_H_
« no previous file with comments | « base/files/file_path_watcher_win.cc ('k') | chrome/browser/media_galleries/fileapi/file_path_watcher_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698