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

Unified Diff: content/browser/indexed_db/indexed_db_database_unittest.cc

Issue 2233153002: IndexedDB: WrapUnique(new T(args..)) -> MakeUnique<T>(args...) (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: content/browser/indexed_db/indexed_db_database_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_database_unittest.cc b/content/browser/indexed_db/indexed_db_database_unittest.cc
index 1f246b20fd26b342c0a93752664211f8cf265ba9..4745eedf9ef8bc40835250e3f9206e886a9e35ef 100644
--- a/content/browser/indexed_db/indexed_db_database_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_database_unittest.cc
@@ -257,7 +257,7 @@ class IndexedDBDatabaseOperationTest : public testing::Test {
db_->OpenConnection(std::move(connection));
EXPECT_EQ(IndexedDBDatabaseMetadata::NO_VERSION, db_->metadata().version);
- connection_ = base::WrapUnique(new IndexedDBConnection(db_, callbacks_));
+ connection_ = base::MakeUnique<IndexedDBConnection>(db_, callbacks_);
transaction_ = IndexedDBClassFactory::Get()->CreateIndexedDBTransaction(
transaction_id, connection_->GetWeakPtr(),
std::set<int64_t>() /*scope*/,

Powered by Google App Engine
This is Rietveld 408576698