| 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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 RunAndReset(&pending_configure_params_->retry_task); | 527 RunAndReset(&pending_configure_params_->retry_task); |
| 528 } | 528 } |
| 529 } | 529 } |
| 530 | 530 |
| 531 void SyncSchedulerImpl::DoClearServerDataSyncCycleJob(JobPriority priority) { | 531 void SyncSchedulerImpl::DoClearServerDataSyncCycleJob(JobPriority priority) { |
| 532 DCHECK(CalledOnValidThread()); | 532 DCHECK(CalledOnValidThread()); |
| 533 DCHECK_EQ(mode_, CLEAR_SERVER_DATA_MODE); | 533 DCHECK_EQ(mode_, CLEAR_SERVER_DATA_MODE); |
| 534 | 534 |
| 535 if (!CanRunJobNow(priority)) { | 535 if (!CanRunJobNow(priority)) { |
| 536 SDVLOG(2) << "Unable to run clear server data job right now."; | 536 SDVLOG(2) << "Unable to run clear server data job right now."; |
| 537 RunAndReset(&pending_configure_params_->retry_task); | |
| 538 return; | 537 return; |
| 539 } | 538 } |
| 540 | 539 |
| 541 std::unique_ptr<SyncCycle> cycle(SyncCycle::Build(cycle_context_, this)); | 540 std::unique_ptr<SyncCycle> cycle(SyncCycle::Build(cycle_context_, this)); |
| 542 const bool success = syncer_->PostClearServerData(cycle.get()); | 541 const bool success = syncer_->PostClearServerData(cycle.get()); |
| 543 if (!success) { | 542 if (!success) { |
| 544 HandleFailure(cycle->status_controller().model_neutral_state()); | 543 HandleFailure(cycle->status_controller().model_neutral_state()); |
| 545 return; | 544 return; |
| 546 } | 545 } |
| 547 | 546 |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 | 973 |
| 975 #undef SDVLOG_LOC | 974 #undef SDVLOG_LOC |
| 976 | 975 |
| 977 #undef SDVLOG | 976 #undef SDVLOG |
| 978 | 977 |
| 979 #undef SLOG | 978 #undef SLOG |
| 980 | 979 |
| 981 #undef ENUM_CASE | 980 #undef ENUM_CASE |
| 982 | 981 |
| 983 } // namespace syncer | 982 } // namespace syncer |
| OLD | NEW |