| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/sync/engine_impl/sync_scheduler_impl.h" | 5 #include "components/sync/engine_impl/sync_scheduler_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cstring> | 8 #include <cstring> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 AdjustPolling(UPDATE_INTERVAL); | 511 AdjustPolling(UPDATE_INTERVAL); |
| 512 } | 512 } |
| 513 } else { | 513 } else { |
| 514 HandleFailure(cycle->status_controller().model_neutral_state()); | 514 HandleFailure(cycle->status_controller().model_neutral_state()); |
| 515 } | 515 } |
| 516 } | 516 } |
| 517 | 517 |
| 518 void SyncSchedulerImpl::DoConfigurationSyncCycleJob(JobPriority priority) { | 518 void SyncSchedulerImpl::DoConfigurationSyncCycleJob(JobPriority priority) { |
| 519 DCHECK(CalledOnValidThread()); | 519 DCHECK(CalledOnValidThread()); |
| 520 DCHECK_EQ(mode_, CONFIGURATION_MODE); | 520 DCHECK_EQ(mode_, CONFIGURATION_MODE); |
| 521 DCHECK(pending_configure_params_ != NULL); | 521 DCHECK(pending_configure_params_ != nullptr); |
| 522 | 522 |
| 523 if (!CanRunJobNow(priority)) { | 523 if (!CanRunJobNow(priority)) { |
| 524 SDVLOG(2) << "Unable to run configure job right now."; | 524 SDVLOG(2) << "Unable to run configure job right now."; |
| 525 RunAndReset(&pending_configure_params_->retry_task); | 525 RunAndReset(&pending_configure_params_->retry_task); |
| 526 return; | 526 return; |
| 527 } | 527 } |
| 528 | 528 |
| 529 SDVLOG(2) << "Will run configure SyncShare with types " | 529 SDVLOG(2) << "Will run configure SyncShare with types " |
| 530 << ModelTypeSetToString(cycle_context_->GetEnabledTypes()); | 530 << ModelTypeSetToString(cycle_context_->GetEnabledTypes()); |
| 531 std::unique_ptr<SyncCycle> cycle(SyncCycle::Build(cycle_context_, this)); | 531 std::unique_ptr<SyncCycle> cycle(SyncCycle::Build(cycle_context_, this)); |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 | 962 |
| 963 #undef SDVLOG_LOC | 963 #undef SDVLOG_LOC |
| 964 | 964 |
| 965 #undef SDVLOG | 965 #undef SDVLOG |
| 966 | 966 |
| 967 #undef SLOG | 967 #undef SLOG |
| 968 | 968 |
| 969 #undef ENUM_CASE | 969 #undef ENUM_CASE |
| 970 | 970 |
| 971 } // namespace syncer | 971 } // namespace syncer |
| OLD | NEW |