diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-27 21:22:05 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-27 21:22:05 +0000 |
commit | fa4f3668bd7046b74862bc8337e82e5c164dd91d (patch) | |
tree | 6287993868ecb3a1aba2cc927739eb7780a43a52 /sync/sessions | |
parent | a7ed4b899726bb4fb7a806b9fbbb2e166c7db659 (diff) | |
download | chromium_src-fa4f3668bd7046b74862bc8337e82e5c164dd91d.zip chromium_src-fa4f3668bd7046b74862bc8337e82e5c164dd91d.tar.gz chromium_src-fa4f3668bd7046b74862bc8337e82e5c164dd91d.tar.bz2 |
Revert 148792 - [Sync] Remove CleanupDisabledTypes command and move purge logic into SyncManager.
We were only ever performing a meaningful cleanup on reconfigurations
or restart, so we make that explicit by purging from within the SyncManager's
loading and configuration methods.
BUG=131433, 90868
TEST=manual
Review URL: https://chromiumcodereview.appspot.com/10541079
TBR=zea@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10823061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148812 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/sessions')
-rw-r--r-- | sync/sessions/sync_session_context.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sync/sessions/sync_session_context.h b/sync/sessions/sync_session_context.h index 55d45f4..3255b94 100644 --- a/sync/sessions/sync_session_context.h +++ b/sync/sessions/sync_session_context.h @@ -110,6 +110,14 @@ class SyncSessionContext { } int32 max_commit_batch_size() const { return max_commit_batch_size_; } + const ModelSafeRoutingInfo& previous_session_routing_info() const { + return previous_session_routing_info_; + } + + void set_previous_session_routing_info(const ModelSafeRoutingInfo& info) { + previous_session_routing_info_ = info; + } + void NotifyListeners(const SyncEngineEvent& event) { FOR_EACH_OBSERVER(SyncEngineEventListener, listeners_, OnSyncEngineEvent(event)); @@ -155,6 +163,10 @@ class SyncSessionContext { // The server limits the number of items a client can commit in one batch. int max_commit_batch_size_; + // Some routing info history to help us clean up types that get disabled + // by the user. + ModelSafeRoutingInfo previous_session_routing_info_; + ThrottledDataTypeTracker* throttled_data_type_tracker_; // We use this to get debug info to send to the server for debugging |