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

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: Rebase 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 e1692704c55b2c330a916066b87a1a8c559e3e55..d428cfbffd064989405bed581c140dfe04f4fba7 100644
--- a/components/sync/engine_impl/model_type_worker.cc
+++ b/components/sync/engine_impl/model_type_worker.cc
@@ -424,7 +424,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;
« no previous file with comments | « components/sync/engine_impl/model_type_registry_unittest.cc ('k') | components/sync/engine_impl/model_type_worker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698