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

Unified Diff: components/search_engines/search_engine_data_type_controller_unittest.cc

Issue 2799653006: Revert of [Sync] Stop accessing BrowserContextKeyedServiceFactory on non-UI thread. (Closed)
Patch Set: Created 3 years, 8 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/search_engines/search_engine_data_type_controller_unittest.cc
diff --git a/components/search_engines/search_engine_data_type_controller_unittest.cc b/components/search_engines/search_engine_data_type_controller_unittest.cc
index 8da634347d3cee22461f7a55a53a136a68371f3e..a9c072186443f8d32c0d2c0362259a3f7ec57dee 100644
--- a/components/search_engines/search_engine_data_type_controller_unittest.cc
+++ b/components/search_engines/search_engine_data_type_controller_unittest.cc
@@ -45,9 +45,9 @@
}
// FakeSyncClient overrides.
- ServiceProvider GetSyncableServiceForType(syncer::ModelType type) override {
- return base::Bind(&syncer::SyncableService::AsWeakPtr,
- base::Unretained(&syncable_service_));
+ base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType(
+ syncer::ModelType type) override {
+ return syncable_service_.AsWeakPtr();
}
void TearDown() override {
@@ -66,7 +66,7 @@
base::WrapUnique<syncer::GenericChangeProcessorFactory>(
new syncer::FakeGenericChangeProcessorFactory(
base::MakeUnique<syncer::FakeGenericChangeProcessor>(
- syncer::SEARCH_ENGINES))));
+ syncer::SEARCH_ENGINES, this))));
EXPECT_CALL(model_load_callback_, Run(_, _));
}
« no previous file with comments | « components/browser_sync/profile_sync_test_util.cc ('k') | components/sync/driver/async_directory_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698