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 eedcf22e72b70513195f6caa4e47031fc35f462b..b87654e05a6b9a75fb06bfdf78c05da8cbf2b827 100644 |
--- a/base/files/file_path_watcher_win.cc |
+++ b/base/files/file_path_watcher_win.cc |
@@ -81,7 +81,7 @@ bool FilePathWatcherImpl::Watch(const FilePath& path, |
FilePathWatcher::Delegate* delegate) { |
DCHECK(target_.value().empty()); // Can only watch one path. |
- set_message_loop(base::MessageLoopProxy::CreateForCurrentThread()); |
+ set_message_loop(base::MessageLoopProxy::current()); |
delegate_ = delegate; |
target_ = path; |
MessageLoop::current()->AddDestructionObserver(this); |