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

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

Issue 93433006: sync: Introduce ModelTypeRegistry and helpers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split the type manager Created 7 years 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 } 519 }
520 520
521 void SyncManagerImpl::StartSyncingNormally( 521 void SyncManagerImpl::StartSyncingNormally(
522 const ModelSafeRoutingInfo& routing_info) { 522 const ModelSafeRoutingInfo& routing_info) {
523 // Start the sync scheduler. 523 // Start the sync scheduler.
524 // TODO(sync): We always want the newest set of routes when we switch back 524 // TODO(sync): We always want the newest set of routes when we switch back
525 // to normal mode. Figure out how to enforce set_routing_info is always 525 // to normal mode. Figure out how to enforce set_routing_info is always
526 // appropriately set and that it's only modified when switching to normal 526 // appropriately set and that it's only modified when switching to normal
527 // mode. 527 // mode.
528 DCHECK(thread_checker_.CalledOnValidThread()); 528 DCHECK(thread_checker_.CalledOnValidThread());
529 session_context_->set_routing_info(routing_info); 529 session_context_->SetRoutingInfo(routing_info);
530 scheduler_->Start(SyncScheduler::NORMAL_MODE); 530 scheduler_->Start(SyncScheduler::NORMAL_MODE);
531 } 531 }
532 532
533 syncable::Directory* SyncManagerImpl::directory() { 533 syncable::Directory* SyncManagerImpl::directory() {
534 return share_.directory.get(); 534 return share_.directory.get();
535 } 535 }
536 536
537 const SyncScheduler* SyncManagerImpl::scheduler() const { 537 const SyncScheduler* SyncManagerImpl::scheduler() const {
538 return scheduler_.get(); 538 return scheduler_.get();
539 } 539 }
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 int SyncManagerImpl::GetDefaultNudgeDelay() { 1338 int SyncManagerImpl::GetDefaultNudgeDelay() {
1339 return kDefaultNudgeDelayMilliseconds; 1339 return kDefaultNudgeDelayMilliseconds;
1340 } 1340 }
1341 1341
1342 // static. 1342 // static.
1343 int SyncManagerImpl::GetPreferencesNudgeDelay() { 1343 int SyncManagerImpl::GetPreferencesNudgeDelay() {
1344 return kPreferencesNudgeDelayMilliseconds; 1344 return kPreferencesNudgeDelayMilliseconds;
1345 } 1345 }
1346 1346
1347 } // namespace syncer 1347 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698