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

Unified Diff: chrome/browser/sync/test/integration/sync_extension_installer.cc

Issue 1143343005: chrome/browser: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 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/sync/test/integration/sync_extension_installer.cc
diff --git a/chrome/browser/sync/test/integration/sync_extension_installer.cc b/chrome/browser/sync/test/integration/sync_extension_installer.cc
index 9d08d1a51ea787c3d9621fba832282c100d924b9..8d956b4430592e8948f0e0e4a02c31c8e57e078e 100644
--- a/chrome/browser/sync/test/integration/sync_extension_installer.cc
+++ b/chrome/browser/sync/test/integration/sync_extension_installer.cc
@@ -5,7 +5,9 @@
#include "chrome/browser/sync/test/integration/sync_extension_installer.h"
#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/sync/test/integration/sync_extension_helper.h"
#include "content/public/browser/notification_source.h"
@@ -34,7 +36,7 @@ void SyncedExtensionInstaller::Observe(
// a signal that it's time to asynchronously fake the installation of these
// extensions.
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&SyncedExtensionInstaller::DoInstallSyncedExtensions,
weak_ptr_factory_.GetWeakPtr()));

Powered by Google App Engine
This is Rietveld 408576698