| Index: components/sync/engine_impl/sync_scheduler_impl.cc
|
| diff --git a/components/sync/engine_impl/sync_scheduler_impl.cc b/components/sync/engine_impl/sync_scheduler_impl.cc
|
| index c4362ac0c4d7648adedb63215347f934af907a7b..9616a1349fdf7c5500e6cf419acc580823006680 100644
|
| --- a/components/sync/engine_impl/sync_scheduler_impl.cc
|
| +++ b/components/sync/engine_impl/sync_scheduler_impl.cc
|
| @@ -356,10 +356,11 @@ bool SyncSchedulerImpl::CanRunJobNow(JobPriority priority) {
|
| return false;
|
| }
|
|
|
| - if (cycle_context_->connection_manager()->HasInvalidAuthToken()) {
|
| - SDVLOG(1) << "Unable to run a job because we have no valid auth token.";
|
| - return false;
|
| - }
|
| + // ### Only if needed.
|
| + //if (cycle_context_->connection_manager()->HasInvalidAuthToken()) {
|
| + // SDVLOG(1) << "Unable to run a job because we have no valid auth token.";
|
| + // return false;
|
| + //}
|
|
|
| return true;
|
| }
|
| @@ -520,13 +521,14 @@ void SyncSchedulerImpl::DoConfigurationSyncCycleJob(JobPriority priority) {
|
| DCHECK(CalledOnValidThread());
|
| DCHECK_EQ(mode_, CONFIGURATION_MODE);
|
| DCHECK(pending_configure_params_ != NULL);
|
| -
|
| + LOG(ERROR) << "@@@@@ SyncSchedulerImpl::DoConfigurationSyncCycleJob 1";
|
| if (!CanRunJobNow(priority)) {
|
| SDVLOG(2) << "Unable to run configure job right now.";
|
| RunAndReset(&pending_configure_params_->retry_task);
|
| return;
|
| }
|
|
|
| + LOG(ERROR) << "@@@@@ SyncSchedulerImpl::DoConfigurationSyncCycleJob 2";
|
| SDVLOG(2) << "Will run configure SyncShare with types "
|
| << ModelTypeSetToString(cycle_context_->GetEnabledTypes());
|
| std::unique_ptr<SyncCycle> cycle(SyncCycle::Build(cycle_context_, this));
|
| @@ -535,11 +537,13 @@ void SyncSchedulerImpl::DoConfigurationSyncCycleJob(JobPriority priority) {
|
| pending_configure_params_->source, cycle.get());
|
|
|
| if (success) {
|
| + LOG(ERROR) << "@@@@@ SyncSchedulerImpl::DoConfigurationSyncCycleJob 3";
|
| SDVLOG(2) << "Configure succeeded.";
|
| pending_configure_params_->ready_task.Run();
|
| pending_configure_params_.reset();
|
| HandleSuccess();
|
| } else {
|
| + LOG(ERROR) << "@@@@@ SyncSchedulerImpl::DoConfigurationSyncCycleJob 4";
|
| HandleFailure(cycle->status_controller().model_neutral_state());
|
| // Sync cycle might receive response from server that causes scheduler to
|
| // stop and draws pending_configure_params_ invalid.
|
|
|