Chromium Code Reviews| 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(), |