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

Unified Diff: sync/sessions/ordered_commit_set.cc

Issue 19982002: sync: Remove SyncSourceInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Convert SyncShareRecords to typedef Created 7 years, 5 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 | « sync/sessions/ordered_commit_set.h ('k') | sync/sessions/ordered_commit_set_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/ordered_commit_set.cc
diff --git a/sync/sessions/ordered_commit_set.cc b/sync/sessions/ordered_commit_set.cc
index f2f3755c8a3c6068016dd4dd406ddb7334cdfd30..842a0e908fc5e78e2021ae156711ae0e0549cc38 100644
--- a/sync/sessions/ordered_commit_set.cc
+++ b/sync/sessions/ordered_commit_set.cc
@@ -27,6 +27,7 @@ void OrderedCommitSet::AddCommitItem(const int64 metahandle,
projections_[GetGroupForModelType(type, routes_)].push_back(
commit_ids_.size() - 1);
types_.push_back(type);
+ types_in_list_.Put(type);
}
}
@@ -86,6 +87,7 @@ void OrderedCommitSet::Clear() {
it->second.clear();
}
types_.clear();
+ types_in_list_.Clear();
}
OrderedCommitSet::CommitItem OrderedCommitSet::GetCommitItemAt(
« no previous file with comments | « sync/sessions/ordered_commit_set.h ('k') | sync/sessions/ordered_commit_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698