Commit f1b03ed8 authored by pranay.kumar's avatar pranay.kumar Committed by Commit bot

Substituting pattern push_back(ptr.release()) with push_back(ptr.Pass()) in sync/

BUG=457697

Review URL: https://codereview.chromium.org/1132343003

Cr-Commit-Position: refs/heads/master@{#329619}
parent 7962f36d
...@@ -29,7 +29,7 @@ ProtocolEventBuffer::GetBufferedProtocolEvents() const { ...@@ -29,7 +29,7 @@ ProtocolEventBuffer::GetBufferedProtocolEvents() const {
ScopedVector<ProtocolEvent> ret; ScopedVector<ProtocolEvent> ret;
for (std::deque<ProtocolEvent*>::const_iterator it = buffer_.begin(); for (std::deque<ProtocolEvent*>::const_iterator it = buffer_.begin();
it != buffer_.end(); ++it) { it != buffer_.end(); ++it) {
ret.push_back((*it)->Clone().release()); ret.push_back((*it)->Clone().Pass());
} }
return ret.Pass(); return ret.Pass();
} }
......
...@@ -225,7 +225,7 @@ void ModelTypeRegistry::ConnectSyncTypeToWorker( ...@@ -225,7 +225,7 @@ void ModelTypeRegistry::ConnectSyncTypeToWorker(
commit_contributor_map_.insert(std::make_pair(type, worker.get())); commit_contributor_map_.insert(std::make_pair(type, worker.get()));
// The container takes ownership. // The container takes ownership.
model_type_sync_workers_.push_back(worker.release()); model_type_sync_workers_.push_back(worker.Pass());
DCHECK(Intersection(GetEnabledDirectoryTypes(), DCHECK(Intersection(GetEnabledDirectoryTypes(),
GetEnabledNonBlockingTypes()).Empty()); GetEnabledNonBlockingTypes()).Empty());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment