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

Unified Diff: sync/tools/sync_client.cc

Issue 10837231: sync: add InternalComponentsFactory::Switches to simplify passing switches to internal components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pass switches in test_profile_sync_service.cc Created 8 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
« sync/internal_api/public/internal_components_factory.h ('K') | « sync/sync.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/tools/sync_client.cc
diff --git a/sync/tools/sync_client.cc b/sync/tools/sync_client.cc
index f671edc10dbd29dafc493c3f0e7d3221584a4d00..5f6de2a32f156929429409bc36f8b1dcb9ddb2e4 100644
--- a/sync/tools/sync_client.cc
+++ b/sync/tools/sync_client.cc
@@ -351,6 +351,11 @@ int SyncClientMain(int argc, char* argv[]) {
const char kRestoredKeystoreKeyForBootstrapping[] = "";
NullEncryptor null_encryptor;
LoggingUnrecoverableErrorHandler unrecoverable_error_handler;
+ InternalComponentsFactoryImpl::Switches factory_switches = {
+ InternalComponentsFactory::ENCRYPTION_KEYSTORE,
+ InternalComponentsFactory::BACKOFF_NORMAL
+ };
+
sync_manager->Init(database_dir.path(),
WeakHandle<JsEventHandler>(
js_event_handler.AsWeakPtr()),
@@ -367,9 +372,8 @@ int SyncClientMain(int argc, char* argv[]) {
sync_notifier_factory.CreateSyncNotifier()),
kRestoredKeyForBootstrapping,
kRestoredKeystoreKeyForBootstrapping,
- true, // enable keystore encryption
scoped_ptr<InternalComponentsFactory>(
- new InternalComponentsFactoryImpl()),
+ new InternalComponentsFactoryImpl(factory_switches)),
&null_encryptor,
&unrecoverable_error_handler,
&LogUnrecoverableErrorContext);
« sync/internal_api/public/internal_components_factory.h ('K') | « sync/sync.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698