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

Unified Diff: components/sync/engine/fake_sync_engine.cc

Issue 2559123002: [Sync] SyncEngine refactor part 2: SyncServiceBase. (Closed)
Patch Set: Self-review (added comments). Created 4 years 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/engine/fake_sync_engine.cc
diff --git a/components/sync/engine/fake_sync_engine.cc b/components/sync/engine/fake_sync_engine.cc
index 141bed1ef0893417aaf21ce35bbf44a5f95eb68a..c22ce88885825118fddb87989319c3cdf3ee59e1 100644
--- a/components/sync/engine/fake_sync_engine.cc
+++ b/components/sync/engine/fake_sync_engine.cc
@@ -14,24 +14,10 @@ const char kTestCacheGuid[] = "test-guid";
FakeSyncEngine::FakeSyncEngine() : fail_initial_download_(false) {}
FakeSyncEngine::~FakeSyncEngine() {}
-void FakeSyncEngine::Initialize(
- SyncEngineHost* host,
- scoped_refptr<base::SingleThreadTaskRunner> sync_task_runner,
- const WeakHandle<JsEventHandler>& event_handler,
- const GURL& service_url,
- const std::string& sync_user_agent,
- const SyncCredentials& credentials,
- bool delete_sync_data_folder,
- bool enable_local_sync_backend,
- const base::FilePath& local_sync_backend_folder,
- std::unique_ptr<SyncManagerFactory> sync_manager_factory,
- const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler,
- const base::Closure& report_unrecoverable_error_function,
- const HttpPostProviderFactoryGetter& http_post_provider_factory_getter,
- std::unique_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state) {
- host->OnEngineInitialized(ModelTypeSet(), WeakHandle<JsBackend>(),
- WeakHandle<DataTypeDebugInfoListener>(),
- kTestCacheGuid, !fail_initial_download_);
+void FakeSyncEngine::Initialize(InitParams params) {
+ params.host->OnEngineInitialized(ModelTypeSet(), WeakHandle<JsBackend>(),
+ WeakHandle<DataTypeDebugInfoListener>(),
+ kTestCacheGuid, !fail_initial_download_);
}
void FakeSyncEngine::TriggerRefresh(const ModelTypeSet& types) {}

Powered by Google App Engine
This is Rietveld 408576698