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

Unified Diff: components/sync/driver/shared_change_processor_unittest.cc

Issue 2257523003: [Sync] Move StartAssociation from NonUIDataTypeController to SharedChangeProcessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move local_service_ WeakPtr to SharedChangeProcessor. Created 4 years, 4 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: components/sync/driver/shared_change_processor_unittest.cc
diff --git a/components/sync/driver/shared_change_processor_unittest.cc b/components/sync/driver/shared_change_processor_unittest.cc
index cc698fbd529af1d4f4783b74d67ca05ca30b5fee..9e86dd32298ba782be34b69654911851055968f3 100644
--- a/components/sync/driver/shared_change_processor_unittest.cc
+++ b/components/sync/driver/shared_change_processor_unittest.cc
@@ -5,6 +5,7 @@
#include "components/sync/driver/shared_change_processor.h"
#include <cstddef>
+#include <memory>
#include <string>
#include "base/bind.h"
@@ -102,7 +103,7 @@ class SyncSharedChangeProcessorTest : public testing::Test,
protected:
void SetUp() override {
test_user_share_.SetUp();
- shared_change_processor_ = new SharedChangeProcessor();
+ shared_change_processor_ = new SharedChangeProcessor(syncer::AUTOFILL);
ASSERT_TRUE(backend_thread_.Start());
ASSERT_TRUE(backend_thread_.task_runner()->PostTask(
FROM_HERE,
@@ -189,8 +190,7 @@ class SyncSharedChangeProcessorTest : public testing::Test,
DCHECK(backend_thread_.task_runner()->BelongsToCurrentThread());
EXPECT_TRUE(shared_change_processor->Connect(
this, &processor_factory_, test_user_share_.user_share(),
- &error_handler_, syncer::AUTOFILL,
- base::WeakPtr<syncer::SyncMergeResult>()));
+ &error_handler_, base::WeakPtr<syncer::SyncMergeResult>()));
did_connect_ = true;
}
« no previous file with comments | « components/sync/driver/shared_change_processor.cc ('k') | components/sync/driver/ui_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698