| 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 2309947fab401e6b3cc44846c5a158eb62b022c9..65c13dae74abf1194da34ca80d7278d235e60339 100644
|
| --- a/base/files/file_path_watcher_win.cc
|
| +++ b/base/files/file_path_watcher_win.cc
|
| @@ -11,7 +11,7 @@
|
| #include "base/logging.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| -#include "base/threading/thread_task_runner_handle.h"
|
| +#include "base/threading/sequenced_task_runner_handle.h"
|
| #include "base/time/time.h"
|
| #include "base/win/object_watcher.h"
|
|
|
| @@ -83,7 +83,7 @@ bool FilePathWatcherImpl::Watch(const FilePath& path,
|
| const FilePathWatcher::Callback& callback) {
|
| DCHECK(target_.value().empty()); // Can only watch one path.
|
|
|
| - set_task_runner(ThreadTaskRunnerHandle::Get());
|
| + set_task_runner(SequencedTaskRunnerHandle::Get());
|
| callback_ = callback;
|
| target_ = path;
|
| recursive_watch_ = recursive;
|
| @@ -109,7 +109,7 @@ void FilePathWatcherImpl::Cancel() {
|
| return;
|
| }
|
|
|
| - DCHECK(task_runner()->BelongsToCurrentThread());
|
| + DCHECK(task_runner()->RunsTasksOnCurrentThread());
|
| set_cancelled();
|
|
|
| if (handle_ != INVALID_HANDLE_VALUE)
|
|
|