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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/event_router.cc

Issue 1118943005: [chrome/browser/chromeos/extensions] Deprecation of loop proxy usage with TTRH (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review nit Created 5 years, 7 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
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));
}
}

Powered by Google App Engine
This is Rietveld 408576698