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

Unified Diff: components/sync/driver/glue/sync_backend_registrar_unittest.cc

Issue 2489433002: [Sync] Move thread checking into the ModelSafeWorker interface. (Closed)
Patch Set: Improve/add comments. Created 4 years, 1 month 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: components/sync/driver/glue/sync_backend_registrar_unittest.cc
diff --git a/components/sync/driver/glue/sync_backend_registrar_unittest.cc b/components/sync/driver/glue/sync_backend_registrar_unittest.cc
index 4723b568cf1ca1c66796976ab34980b274a053a4..a6f71b5dabf07b2a91e301a43c11370d747f843a 100644
--- a/components/sync/driver/glue/sync_backend_registrar_unittest.cc
+++ b/components/sync/driver/glue/sync_backend_registrar_unittest.cc
@@ -10,6 +10,7 @@
#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
+#include "base/threading/thread.h"
#include "components/sync/driver/change_processor_mock.h"
#include "components/sync/driver/fake_sync_client.h"
#include "components/sync/driver/glue/browser_thread_model_worker.h"
@@ -93,9 +94,8 @@ class SyncBackendRegistrarTest : public testing::Test {
test_user_share_.SetUp();
sync_client_ = base::MakeUnique<RegistrarSyncClient>(
ui_task_runner(), db_task_runner(), file_task_runner());
- registrar_ = base::MakeUnique<SyncBackendRegistrar>(
- "test", sync_client_.get(), ui_task_runner(), db_task_runner(),
- file_task_runner());
+ registrar_ =
+ base::MakeUnique<SyncBackendRegistrar>("test", sync_client_.get());
}
void TearDown() override {

Powered by Google App Engine
This is Rietveld 408576698