Index: chrome/browser/chromeos/extensions/file_manager/event_router.cc |
diff --git a/chrome/browser/chromeos/extensions/file_manager/event_router.cc b/chrome/browser/chromeos/extensions/file_manager/event_router.cc |
index ac0f5e86e2d1a0736aff51b90ed06beb98fc4e02..d58e6d6ddbb63065c0aee7b0838dc64162054687 100644 |
--- a/chrome/browser/chromeos/extensions/file_manager/event_router.cc |
+++ b/chrome/browser/chromeos/extensions/file_manager/event_router.cc |
@@ -7,7 +7,6 @@ |
#include "base/bind.h" |
#include "base/command_line.h" |
#include "base/files/file_util.h" |
-#include "base/message_loop/message_loop.h" |
#include "base/prefs/pref_change_registrar.h" |
#include "base/prefs/pref_service.h" |
#include "base/stl_util.h" |
@@ -464,8 +463,8 @@ void EventRouter::AddFileWatch(const base::FilePath& local_path, |
if (is_on_drive) { |
// For Drive, file watching is done via OnDirectoryChanged(). |
- base::MessageLoopProxy::current()->PostTask(FROM_HERE, |
- base::Bind(callback, true)); |
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, |
+ base::Bind(callback, true)); |
} else { |
// For local files, start watching using FileWatcher. |
watcher->WatchLocalFile( |
@@ -479,8 +478,8 @@ void EventRouter::AddFileWatch(const base::FilePath& local_path, |
file_watchers_[watch_path] = watcher.release(); |
} else { |
iter->second->AddExtension(extension_id); |
- base::MessageLoopProxy::current()->PostTask(FROM_HERE, |
- base::Bind(callback, true)); |
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, |
+ base::Bind(callback, true)); |
} |
} |