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

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

Issue 2473613003: [Sync] Adds a new switch for enabling the new local server backend. (Closed)
Patch Set: Ifdef protect the variable. 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_host_core.cc
diff --git a/components/sync/driver/glue/sync_backend_host_core.cc b/components/sync/driver/glue/sync_backend_host_core.cc
index e853d29dcebdf47ac1a414cabc9094bacf17d72f..519b5dff05dab241b9219b11ac506b617cf5b773 100644
--- a/components/sync/driver/glue/sync_backend_host_core.cc
+++ b/components/sync/driver/glue/sync_backend_host_core.cc
@@ -66,6 +66,8 @@ DoInitializeOptions::DoInitializeOptions(
const std::string& invalidator_client_id,
std::unique_ptr<SyncManagerFactory> sync_manager_factory,
bool delete_sync_data_folder,
+ bool enable_local_sync_backend,
+ const base::FilePath& local_sync_backend_folder,
const std::string& restored_key_for_bootstrapping,
const std::string& restored_keystore_key_for_bootstrapping,
std::unique_ptr<EngineComponentsFactory> engine_components_factory,
@@ -85,6 +87,8 @@ DoInitializeOptions::DoInitializeOptions(
invalidator_client_id(invalidator_client_id),
sync_manager_factory(std::move(sync_manager_factory)),
delete_sync_data_folder(delete_sync_data_folder),
+ enable_local_sync_backend(enable_local_sync_backend),
+ local_sync_backend_folder(local_sync_backend_folder),
restored_key_for_bootstrapping(restored_key_for_bootstrapping),
restored_keystore_key_for_bootstrapping(
restored_keystore_key_for_bootstrapping),
@@ -407,6 +411,8 @@ void SyncBackendHostCore::DoInitialize(
args.database_location = sync_data_folder_path_;
args.event_handler = options->event_handler;
args.service_url = options->service_url;
+ args.enable_local_sync_backend = options->enable_local_sync_backend;
+ args.local_sync_backend_folder = options->local_sync_backend_folder;
args.post_factory = std::move(options->http_bridge_factory);
args.workers = options->workers;
args.extensions_activity = options->extensions_activity.get();
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_core.h ('k') | components/sync/driver/glue/sync_backend_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698