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

Side by Side Diff: sync/engine/sync_scheduler_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
« no previous file with comments | « sync/engine/get_updates_delegate.cc ('k') | sync/internal_api/public/configure_reason.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
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
OLDNEW
« no previous file with comments | « sync/engine/get_updates_delegate.cc ('k') | sync/internal_api/public/configure_reason.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698