Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Unified Diff: components/sync/engine_impl/model_type_worker.cc

Issue 2256733004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/sync/engine_impl/model_type_worker.cc
diff --git a/components/sync/engine_impl/model_type_worker.cc b/components/sync/engine_impl/model_type_worker.cc
index dc238bb9db3e3f3005679c3301427818bcf880eb..af78776b0296019f7613d5459a72c14979f52459 100644
--- a/components/sync/engine_impl/model_type_worker.cc
+++ b/components/sync/engine_impl/model_type_worker.cc
@@ -425,7 +425,7 @@ WorkerEntityTracker* ModelTypeWorker::CreateEntityTracker(
const EntityData& data) {
DCHECK(entities_.find(data.client_tag_hash) == entities_.end());
std::unique_ptr<WorkerEntityTracker> entity =
- base::WrapUnique(new WorkerEntityTracker(data.id, data.client_tag_hash));
+ base::MakeUnique<WorkerEntityTracker>(data.id, data.client_tag_hash);
WorkerEntityTracker* entity_ptr = entity.get();
entities_[data.client_tag_hash] = std::move(entity);
return entity_ptr;

Powered by Google App Engine
This is Rietveld 408576698