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

Unified Diff: components/sync/core/shared_model_type_processor_unittest.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/core/shared_model_type_processor_unittest.cc
diff --git a/components/sync/core/shared_model_type_processor_unittest.cc b/components/sync/core/shared_model_type_processor_unittest.cc
index 76a91ab2ac9792c2f45e003bad8074d96c444bb8..d5c7f08c1510e272a30e671241639f56e356236c 100644
--- a/components/sync/core/shared_model_type_processor_unittest.cc
+++ b/components/sync/core/shared_model_type_processor_unittest.cc
@@ -76,7 +76,7 @@ EntitySpecifics GenerateSpecifics(const std::string& name,
std::unique_ptr<EntityData> GenerateEntityData(const std::string& key,
const std::string& value) {
- std::unique_ptr<EntityData> entity_data = base::WrapUnique(new EntityData());
+ std::unique_ptr<EntityData> entity_data = base::MakeUnique<EntityData>();
entity_data->client_tag_hash = TagHashFromKey(key);
entity_data->specifics = GenerateSpecifics(key, value);
entity_data->non_unique_name = key;

Powered by Google App Engine
This is Rietveld 408576698