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

Side by Side Diff: chrome/browser/sync/engine/syncapi.cc

Issue 7281017: [Sync] Add RequestCleanupDisabledTypes() method to SyncManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replaced with TODOs Created 9 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 | « chrome/browser/sync/engine/syncapi.h ('k') | chrome/browser/sync/engine/syncer.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/sync/engine/syncapi.h" 5 #include "chrome/browser/sync/engine/syncapi.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <bitset> 8 #include <bitset>
9 #include <iomanip> 9 #include <iomanip>
10 #include <list> 10 #include <list>
(...skipping 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after
1694 1694
1695 void SyncManager::EncryptDataTypes( 1695 void SyncManager::EncryptDataTypes(
1696 const syncable::ModelTypeSet& encrypted_types) { 1696 const syncable::ModelTypeSet& encrypted_types) {
1697 data_->EncryptDataTypes(encrypted_types); 1697 data_->EncryptDataTypes(encrypted_types);
1698 } 1698 }
1699 1699
1700 bool SyncManager::IsUsingExplicitPassphrase() { 1700 bool SyncManager::IsUsingExplicitPassphrase() {
1701 return data_ && data_->IsUsingExplicitPassphrase(); 1701 return data_ && data_->IsUsingExplicitPassphrase();
1702 } 1702 }
1703 1703
1704 void SyncManager::RequestNudge(const tracked_objects::Location& location) { 1704 void SyncManager::RequestCleanupDisabledTypes() {
1705 data_->RequestNudge(location); 1705 if (data_->scheduler())
1706 data_->scheduler()->ScheduleCleanupDisabledTypes();
1706 } 1707 }
1707 1708
1708 void SyncManager::RequestClearServerData() { 1709 void SyncManager::RequestClearServerData() {
1709 if (data_->scheduler()) 1710 if (data_->scheduler())
1710 data_->scheduler()->ScheduleClearUserData(); 1711 data_->scheduler()->ScheduleClearUserData();
1711 } 1712 }
1712 1713
1713 void SyncManager::RequestConfig(const syncable::ModelTypeBitSet& types, 1714 void SyncManager::RequestConfig(const syncable::ModelTypeBitSet& types,
1714 ConfigureReason reason) { 1715 ConfigureReason reason) {
1715 if (!data_->scheduler()) { 1716 if (!data_->scheduler()) {
(...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after
3045 void SyncManager::TriggerOnIncomingNotificationForTest( 3046 void SyncManager::TriggerOnIncomingNotificationForTest(
3046 const syncable::ModelTypeBitSet& model_types) { 3047 const syncable::ModelTypeBitSet& model_types) {
3047 syncable::ModelTypePayloadMap model_types_with_payloads = 3048 syncable::ModelTypePayloadMap model_types_with_payloads =
3048 syncable::ModelTypePayloadMapFromBitSet(model_types, 3049 syncable::ModelTypePayloadMapFromBitSet(model_types,
3049 std::string()); 3050 std::string());
3050 3051
3051 data_->OnIncomingNotification(model_types_with_payloads); 3052 data_->OnIncomingNotification(model_types_with_payloads);
3052 } 3053 }
3053 3054
3054 } // namespace sync_api 3055 } // namespace sync_api
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/syncapi.h ('k') | chrome/browser/sync/engine/syncer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698