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

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

Issue 2769113002: [Sync] Stop accessing BrowserContextKeyedServiceFactory on non-UI thread. (Closed)
Patch Set: Rebase and removing dependent patch set. Created 3 years, 9 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/generic_change_processor_unittest.cc
diff --git a/components/sync/driver/generic_change_processor_unittest.cc b/components/sync/driver/generic_change_processor_unittest.cc
index 1bc4628e767f9cd7e67294b0b2803eb3de466795..09045cc028c2c9c378c94576af2cb343e860309d 100644
--- a/components/sync/driver/generic_change_processor_unittest.cc
+++ b/components/sync/driver/generic_change_processor_unittest.cc
@@ -124,8 +124,7 @@ class SyncGenericChangeProcessorTest : public testing::Test {
SyncGenericChangeProcessorTest()
: syncable_service_ptr_factory_(&fake_syncable_service_),
- mock_attachment_service_(nullptr),
- sync_client_(&sync_factory_) {}
+ mock_attachment_service_(nullptr) {}
void SetUp() override {
// Use kType by default, but allow test cases to re-initialize with whatever
@@ -167,7 +166,7 @@ class SyncGenericChangeProcessorTest : public testing::Test {
type, base::MakeUnique<DataTypeErrorHandlerMock>(),
syncable_service_ptr_factory_.GetWeakPtr(),
merge_result_ptr_factory_->GetWeakPtr(), test_user_share_->user_share(),
- &sync_client_, attachment_store->CreateAttachmentStoreForSync());
+ &sync_factory_, attachment_store->CreateAttachmentStoreForSync());
mock_attachment_service_ = sync_factory_.GetMockAttachmentService();
}
@@ -204,7 +203,6 @@ class SyncGenericChangeProcessorTest : public testing::Test {
std::unique_ptr<TestUserShare> test_user_share_;
MockAttachmentService* mock_attachment_service_;
- FakeSyncClient sync_client_;
MockSyncApiComponentFactory sync_factory_;
std::unique_ptr<GenericChangeProcessor> change_processor_;
« no previous file with comments | « components/sync/driver/generic_change_processor_factory.cc ('k') | components/sync/driver/shared_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698