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

Unified Diff: chrome/browser/sync/sessions/sync_session.cc

Issue 553015: Support for multiple sync ModelSafeWorkers.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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
« no previous file with comments | « chrome/browser/sync/sessions/sync_session.h ('k') | chrome/browser/sync/sessions/sync_session_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sessions/sync_session.cc
===================================================================
--- chrome/browser/sync/sessions/sync_session.cc (revision 36603)
+++ chrome/browser/sync/sessions/sync_session.cc (working copy)
@@ -14,6 +14,23 @@
write_transaction_(NULL),
delegate_(delegate),
auth_failure_occurred_(false) {
+
+ std::vector<ModelSafeWorker*>* s =
+ const_cast<std::vector<ModelSafeWorker*>* >(&workers_);
+ context_->registrar()->GetWorkers(s);
+
+ // TODO(tim): Use ModelSafeRoutingInfo to silo parts of the session status by
+ // ModelSafeGroup;
+ // e.g. have a map<class, commit_ids>, map<class, ConflictProgress> etc.
+ // The routing will be used to map multiple model types into the right silo.
+ // The routing info can't change throughout a session, so we're assured that
+ // (for example) commit_ids for syncable::AUTOFILL items that were being
+ // processed as part of the GROUP_PASSIVE run (because they weren't being
+ // synced) *continue* to be for this whole session, even though the
+ // ModelSafeWorkerRegistrar may be configured to route syncable::AUTOFILL to
+ // GROUP_DB now.
+ group_restriction_in_effect_ = false;
+ group_restriction_ = GROUP_PASSIVE;
}
SyncSessionSnapshot SyncSession::TakeSnapshot() const {
« no previous file with comments | « chrome/browser/sync/sessions/sync_session.h ('k') | chrome/browser/sync/sessions/sync_session_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698