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

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

Issue 2494873003: [Sync] Allow sync start without sign-in if the local sync backend is on. (Closed)
Patch Set: Remove ifdefs around include. 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/engine_components_factory_impl.cc
diff --git a/components/sync/engine/engine_components_factory_impl.cc b/components/sync/engine/engine_components_factory_impl.cc
index d3d3a88057b32d315b66dde205f32543760f1530..dd913f92086ed1122c0a56c5de4ac5f7700f4f86 100644
--- a/components/sync/engine/engine_components_factory_impl.cc
+++ b/components/sync/engine/engine_components_factory_impl.cc
@@ -28,7 +28,8 @@ EngineComponentsFactoryImpl::~EngineComponentsFactoryImpl() {}
std::unique_ptr<SyncScheduler> EngineComponentsFactoryImpl::BuildScheduler(
const std::string& name,
SyncCycleContext* context,
- CancelationSignal* cancelation_signal) {
+ CancelationSignal* cancelation_signal,
+ bool ignore_auth_credentials) {
std::unique_ptr<BackoffDelayProvider> delay(
BackoffDelayProvider::FromDefaults());
@@ -38,7 +39,8 @@ std::unique_ptr<SyncScheduler> EngineComponentsFactoryImpl::BuildScheduler(
std::unique_ptr<SyncSchedulerImpl> scheduler =
base::MakeUnique<SyncSchedulerImpl>(name, delay.release(), context,
- new Syncer(cancelation_signal));
+ new Syncer(cancelation_signal),
+ ignore_auth_credentials);
if (switches_.nudge_delay == NudgeDelay::SHORT_NUDGE_DELAY) {
// Set the default nudge delay to 0 because the default is used as a floor
// for override values, and we don't want the below override to be ignored.
« no previous file with comments | « components/sync/engine/engine_components_factory_impl.h ('k') | components/sync/engine/test_engine_components_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698