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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |