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

Unified Diff: components/sync/core/model_type_store_impl.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/model_type_store_impl.cc
diff --git a/components/sync/core/model_type_store_impl.cc b/components/sync/core/model_type_store_impl.cc
index 3630b988e207fd2d864b1cc8624387981511321c..e2993822db979560cb6432a561677eae3770ab15 100644
--- a/components/sync/core/model_type_store_impl.cc
+++ b/components/sync/core/model_type_store_impl.cc
@@ -272,7 +272,7 @@ void ModelTypeStoreImpl::ReadAllMetadataDone(
std::unique_ptr<ModelTypeStore::WriteBatch>
ModelTypeStoreImpl::CreateWriteBatch() {
DCHECK(CalledOnValidThread());
- return base::WrapUnique(new WriteBatchImpl());
+ return base::MakeUnique<WriteBatchImpl>();
}
void ModelTypeStoreImpl::CommitWriteBatch(
« no previous file with comments | « components/sync/api/model_type_service_unittest.cc ('k') | components/sync/core/processor_entity_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698