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

Unified Diff: chrome/browser/sync/glue/sync_backend_registrar_unittest.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/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();
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl.cc ('k') | chrome/browser/sync/glue/typed_url_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698