Index: sync/engine/commit_processor.cc |
diff --git a/sync/engine/commit_processor.cc b/sync/engine/commit_processor.cc |
index d9bd423bb996587841a02ba9e8a9b86bd9cd066f..a5149acdb4e258e7f9aa55e3534885674ee2b499 100644 |
--- a/sync/engine/commit_processor.cc |
+++ b/sync/engine/commit_processor.cc |
@@ -22,7 +22,7 @@ CommitProcessor::~CommitProcessor() {} |
void CommitProcessor::GatherCommitContributions( |
ModelTypeSet commit_types, |
size_t max_entries, |
- ContributionMap* contributions) { |
+ Commit::ContributionMap* contributions) { |
size_t num_entries = 0; |
for (ModelTypeSet::Iterator it = commit_types.First(); |
it.Good(); it.Inc()) { |
@@ -39,7 +39,7 @@ void CommitProcessor::GatherCommitContributions( |
cm_it->second->GetContribution(spaces_remaining); |
if (contribution) { |
num_entries += contribution->GetNumEntries(); |
- contributions->insert(std::make_pair(it.Get(), contribution.release())); |
+ contributions->insert(it.Get(), contribution.Pass()); |
} |
if (num_entries >= max_entries) { |
DCHECK_EQ(num_entries, max_entries) |