Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: sync/internal_api/sync_manager_impl.cc

Issue 439903002: [Sync] Move reenable logic into DTM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dcheck Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sync/internal_api/public/configure_reason.h ('k') | sync/protocol/get_updates_caller_info.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698