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

Unified Diff: chrome/browser/sync/sessions/sync_session_context.h

Issue 2865022: sync: add CleanupDisabledTypesCommand to purge data pertaining to previously... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/sessions/sync_session_context.h
===================================================================
--- chrome/browser/sync/sessions/sync_session_context.h (revision 51231)
+++ chrome/browser/sync/sessions/sync_session_context.h (working copy)
@@ -96,6 +96,14 @@
}
const std::string& account_name() { return account_name_; }
+ 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;
+ }
+
private:
// Rather than force clients to set and null-out various context members, we
// extend our encapsulation boundary to scoped helpers that take care of this
@@ -126,6 +134,10 @@
// The name of the account being synced.
std::string account_name_;
+ // Some routing info history to help us clean up types that get disabled
+ // by the user.
+ ModelSafeRoutingInfo previous_session_routing_info_;
+
DISALLOW_COPY_AND_ASSIGN(SyncSessionContext);
};
« no previous file with comments | « chrome/browser/sync/engine/verify_updates_command_unittest.cc ('k') | chrome/browser/sync/syncable/directory_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698