Index: chrome/browser/sync/glue/sync_backend_registrar_unittest.cc |
diff --git a/chrome/browser/sync/glue/sync_backend_registrar_unittest.cc b/chrome/browser/sync/glue/sync_backend_registrar_unittest.cc |
index 34adb95c58be3837c71f0c6b9987fdf1040df44b..e4eacc3cb4d22351b47299fcb5aa45956f2cc5d7 100644 |
--- a/chrome/browser/sync/glue/sync_backend_registrar_unittest.cc |
+++ b/chrome/browser/sync/glue/sync_backend_registrar_unittest.cc |
@@ -4,7 +4,9 @@ |
#include "chrome/browser/sync/glue/sync_backend_registrar.h" |
+#include "base/location.h" |
#include "base/run_loop.h" |
+#include "base/single_thread_task_runner.h" |
#include "chrome/browser/sync/glue/ui_model_worker.h" |
#include "chrome/test/base/testing_profile.h" |
#include "components/sync_driver/change_processor_mock.h" |
@@ -77,10 +79,9 @@ class SyncBackendRegistrarTest : public testing::Test { |
void TearDown() override { |
registrar_->RequestWorkerStopOnUIThread(); |
test_user_share_.TearDown(); |
- sync_thread_->message_loop()->PostTask( |
- FROM_HERE, |
- base::Bind(&SyncBackendRegistrar::Shutdown, |
- base::Unretained(registrar_.release()))); |
+ sync_thread_->task_runner()->PostTask( |
+ FROM_HERE, base::Bind(&SyncBackendRegistrar::Shutdown, |
+ base::Unretained(registrar_.release()))); |
sync_thread_->message_loop()->RunUntilIdle(); |
} |
@@ -331,10 +332,9 @@ TEST_F(SyncBackendRegistrarShutdownTest, BlockingShutdown) { |
// Start the shutdown. |
registrar->RequestWorkerStopOnUIThread(); |
- sync_thread->message_loop()->PostTask( |
- FROM_HERE, |
- base::Bind(&SyncBackendRegistrar::Shutdown, |
- base::Unretained(registrar.release()))); |
+ sync_thread->task_runner()->PostTask( |
+ FROM_HERE, base::Bind(&SyncBackendRegistrar::Shutdown, |
+ base::Unretained(registrar.release()))); |
// Make sure the thread starts running. |
sync_thread->WaitUntilThreadStarted(); |