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

Unified Diff: sync/sessions/sync_session.cc

Issue 11416126: Track merged nudge sources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix type ID Created 8 years, 1 month 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
« sync/protocol/client_debug_info.proto ('K') | « sync/sessions/sync_session.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/sync_session.cc
diff --git a/sync/sessions/sync_session.cc b/sync/sessions/sync_session.cc
index b57a8eae4ba67927521671bc70b08b5404a65e28..fc9ecf77fd06b2154fee74eebca984af4565aded 100644
--- a/sync/sessions/sync_session.cc
+++ b/sync/sessions/sync_session.cc
@@ -80,6 +80,7 @@ SyncSession::SyncSession(SyncSessionContext* context, Delegate* delegate,
enabled_groups_(ComputeEnabledGroups(routing_info_, workers_)) {
status_controller_.reset(new StatusController(routing_info_));
std::sort(workers_.begin(), workers_.end());
+ merged_sources_log_.push_back(source_);
}
SyncSession::~SyncSession() {}
@@ -92,6 +93,7 @@ void SyncSession::Coalesce(const SyncSession& session) {
// When we coalesce sessions, the sync update source gets overwritten with the
tim (not reviewing) 2012/11/27 23:48:47 Update comment. Also, you say "merged" but you'r
rlarocque 2012/11/28 00:33:58 I think the comment should stay the same. The 'me
// most recent, while the type/state map gets merged.
+ merged_sources_log_.push_back(session.source_);
CoalesceStates(&source_.types, session.source_.types);
source_.updates_source = session.source_.updates_source;
@@ -177,6 +179,7 @@ SyncSessionSnapshot SyncSession::TakeSnapshot() const {
status_controller_->num_hierarchy_conflicts(),
status_controller_->num_server_conflicts(),
source_,
+ merged_sources_log_,
context_->notifications_enabled(),
dir->GetEntriesCount(),
status_controller_->sync_start_time(),
« sync/protocol/client_debug_info.proto ('K') | « sync/sessions/sync_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698