summaryrefslogtreecommitdiffstats
path: root/sync/sessions
diff options
context:
space:
mode:
authorpranay.kumar <pranay.kumar@samsung.com>2015-05-13 05:51:27 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-13 12:51:37 +0000
commitf1b03ed8cf3a881b36a33f46d22c181ba37637b1 (patch)
treed5d401f077eb7d5b00034306658b32c624bb26a7 /sync/sessions
parent7962f36d922c77f234b94a17223aea4d9b7618b8 (diff)
downloadchromium_src-f1b03ed8cf3a881b36a33f46d22c181ba37637b1.zip
chromium_src-f1b03ed8cf3a881b36a33f46d22c181ba37637b1.tar.gz
chromium_src-f1b03ed8cf3a881b36a33f46d22c181ba37637b1.tar.bz2
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}
Diffstat (limited to 'sync/sessions')
-rw-r--r--sync/sessions/model_type_registry.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync/sessions/model_type_registry.cc b/sync/sessions/model_type_registry.cc
index 2366f20..729727e 100644
--- a/sync/sessions/model_type_registry.cc
+++ b/sync/sessions/model_type_registry.cc
@@ -225,7 +225,7 @@ void ModelTypeRegistry::ConnectSyncTypeToWorker(
commit_contributor_map_.insert(std::make_pair(type, worker.get()));
// The container takes ownership.
- model_type_sync_workers_.push_back(worker.release());
+ model_type_sync_workers_.push_back(worker.Pass());
DCHECK(Intersection(GetEnabledDirectoryTypes(),
GetEnabledNonBlockingTypes()).Empty());