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

Unified Diff: base/files/file_path_watcher_win.cc

Issue 2372513005: Remove FilePathWatcher::PlatformDelegate::CancelOnMessageLoopThread(). (Closed)
Patch Set: self-review Created 4 years, 3 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 | « base/files/file_path_watcher_stub.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f2de78343ef09669ebe39c69b2bbacaa32da90fe..f9b1b1c545c5791c42bf1251316f245967bd7022 100644
--- a/base/files/file_path_watcher_win.cc
+++ b/base/files/file_path_watcher_win.cc
@@ -59,7 +59,7 @@ class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate,
void DestroyWatch();
// Cleans up and stops observing the |task_runner_| thread.
- void CancelOnMessageLoopThread() override;
+ void CancelOnMessageLoopThread();
// Callback to notify upon changes.
FilePathWatcher::Callback callback_;
@@ -121,8 +121,8 @@ void FilePathWatcherImpl::Cancel() {
// Switch to the file thread if necessary so we can stop |watcher_|.
if (!task_runner()->BelongsToCurrentThread()) {
- task_runner()->PostTask(FROM_HERE, Bind(&FilePathWatcher::CancelWatch,
- make_scoped_refptr(this)));
+ task_runner()->PostTask(
+ FROM_HERE, Bind(&FilePathWatcherImpl::CancelOnMessageLoopThread, this));
} else {
CancelOnMessageLoopThread();
}
« no previous file with comments | « base/files/file_path_watcher_stub.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698