| 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/internal_api/sync_manager_impl.h" | 5 #include "sync/internal_api/sync_manager_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 switch (reason) { | 72 switch (reason) { |
| 73 case CONFIGURE_REASON_RECONFIGURATION: | 73 case CONFIGURE_REASON_RECONFIGURATION: |
| 74 return GetUpdatesCallerInfo::RECONFIGURATION; | 74 return GetUpdatesCallerInfo::RECONFIGURATION; |
| 75 case CONFIGURE_REASON_MIGRATION: | 75 case CONFIGURE_REASON_MIGRATION: |
| 76 return GetUpdatesCallerInfo::MIGRATION; | 76 return GetUpdatesCallerInfo::MIGRATION; |
| 77 case CONFIGURE_REASON_NEW_CLIENT: | 77 case CONFIGURE_REASON_NEW_CLIENT: |
| 78 return GetUpdatesCallerInfo::NEW_CLIENT; | 78 return GetUpdatesCallerInfo::NEW_CLIENT; |
| 79 case CONFIGURE_REASON_NEWLY_ENABLED_DATA_TYPE: | 79 case CONFIGURE_REASON_NEWLY_ENABLED_DATA_TYPE: |
| 80 case CONFIGURE_REASON_CRYPTO: | 80 case CONFIGURE_REASON_CRYPTO: |
| 81 return GetUpdatesCallerInfo::NEWLY_SUPPORTED_DATATYPE; | 81 return GetUpdatesCallerInfo::NEWLY_SUPPORTED_DATATYPE; |
| 82 case CONFIGURE_REASON_PROGRAMMATIC: |
| 83 return GetUpdatesCallerInfo::PROGRAMMATIC; |
| 82 default: | 84 default: |
| 83 NOTREACHED(); | 85 NOTREACHED(); |
| 84 } | 86 } |
| 85 return GetUpdatesCallerInfo::UNKNOWN; | 87 return GetUpdatesCallerInfo::UNKNOWN; |
| 86 } | 88 } |
| 87 | 89 |
| 88 } // namespace | 90 } // namespace |
| 89 | 91 |
| 90 // A class to calculate nudge delays for types. | 92 // A class to calculate nudge delays for types. |
| 91 class NudgeStrategy { | 93 class NudgeStrategy { |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 int SyncManagerImpl::GetDefaultNudgeDelay() { | 1142 int SyncManagerImpl::GetDefaultNudgeDelay() { |
| 1141 return kDefaultNudgeDelayMilliseconds; | 1143 return kDefaultNudgeDelayMilliseconds; |
| 1142 } | 1144 } |
| 1143 | 1145 |
| 1144 // static. | 1146 // static. |
| 1145 int SyncManagerImpl::GetPreferencesNudgeDelay() { | 1147 int SyncManagerImpl::GetPreferencesNudgeDelay() { |
| 1146 return kPreferencesNudgeDelayMilliseconds; | 1148 return kPreferencesNudgeDelayMilliseconds; |
| 1147 } | 1149 } |
| 1148 | 1150 |
| 1149 } // namespace syncer | 1151 } // namespace syncer |
| OLD | NEW |