Index: sync/sessions/model_type_registry.cc |
diff --git a/sync/sessions/model_type_registry.cc b/sync/sessions/model_type_registry.cc |
index 2366f205660c565079c4f66ac287aee0a6811f6a..729727e0a73dabcc0a21521d65d67cec7252306b 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()); |