| 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 "sync/engine/sync_scheduler_impl.h" | 5 #include "sync/engine/sync_scheduler_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cstring> | 8 #include <cstring> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 const int kDefaultSessionsCommitDelaySeconds = 10; | 137 const int kDefaultSessionsCommitDelaySeconds = 10; |
| 138 | 138 |
| 139 bool IsConfigRelatedUpdateSourceValue( | 139 bool IsConfigRelatedUpdateSourceValue( |
| 140 GetUpdatesCallerInfo::GetUpdatesSource source) { | 140 GetUpdatesCallerInfo::GetUpdatesSource source) { |
| 141 switch (source) { | 141 switch (source) { |
| 142 case GetUpdatesCallerInfo::RECONFIGURATION: | 142 case GetUpdatesCallerInfo::RECONFIGURATION: |
| 143 case GetUpdatesCallerInfo::MIGRATION: | 143 case GetUpdatesCallerInfo::MIGRATION: |
| 144 case GetUpdatesCallerInfo::NEW_CLIENT: | 144 case GetUpdatesCallerInfo::NEW_CLIENT: |
| 145 case GetUpdatesCallerInfo::NEWLY_SUPPORTED_DATATYPE: | 145 case GetUpdatesCallerInfo::NEWLY_SUPPORTED_DATATYPE: |
| 146 case GetUpdatesCallerInfo::PROGRAMMATIC: |
| 146 return true; | 147 return true; |
| 147 default: | 148 default: |
| 148 return false; | 149 return false; |
| 149 } | 150 } |
| 150 } | 151 } |
| 151 | 152 |
| 152 } // namespace | 153 } // namespace |
| 153 | 154 |
| 154 SyncSchedulerImpl::SyncSchedulerImpl(const std::string& name, | 155 SyncSchedulerImpl::SyncSchedulerImpl(const std::string& name, |
| 155 BackoffDelayProvider* delay_provider, | 156 BackoffDelayProvider* delay_provider, |
| (...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 | 919 |
| 919 #undef SDVLOG_LOC | 920 #undef SDVLOG_LOC |
| 920 | 921 |
| 921 #undef SDVLOG | 922 #undef SDVLOG |
| 922 | 923 |
| 923 #undef SLOG | 924 #undef SLOG |
| 924 | 925 |
| 925 #undef ENUM_CASE | 926 #undef ENUM_CASE |
| 926 | 927 |
| 927 } // namespace syncer | 928 } // namespace syncer |
| OLD | NEW |