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

Unified Diff: components/sync/model_impl/model_type_store_impl.cc

Issue 2422253002: [Sync] Rewriting ".reset(new" pattern to use "= base::MakeUnique" instead. (Closed)
Patch Set: Fixing compile. Created 4 years, 2 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/model_impl/model_type_store_impl.cc
diff --git a/components/sync/model_impl/model_type_store_impl.cc b/components/sync/model_impl/model_type_store_impl.cc
index 49b075cc13de7f88303478fb11506113ce787567..532fe653e149d2a2670ca1df01df90907bf85727 100644
--- a/components/sync/model_impl/model_type_store_impl.cc
+++ b/components/sync/model_impl/model_type_store_impl.cc
@@ -335,7 +335,7 @@ void ModelTypeStoreImpl::DeleteGlobalMetadata(WriteBatch* write_batch) {
}
ModelTypeStoreImpl::WriteBatchImpl::WriteBatchImpl() {
- leveldb_write_batch_.reset(new leveldb::WriteBatch());
+ leveldb_write_batch_ = base::MakeUnique<leveldb::WriteBatch>();
}
ModelTypeStoreImpl::WriteBatchImpl::~WriteBatchImpl() {}

Powered by Google App Engine
This is Rietveld 408576698