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

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

Issue 2233153002: IndexedDB: WrapUnique(new T(args..)) -> MakeUnique<T>(args...) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: MOAR MakeUnique calls 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_transaction.cc
diff --git a/content/browser/indexed_db/indexed_db_transaction.cc b/content/browser/indexed_db/indexed_db_transaction.cc
index 5882276f577d9a33492fa931c004ce89ea41f4bc..4a75e9656e7c4bb1ce996a3382bed8006b5c21fc 100644
--- a/content/browser/indexed_db/indexed_db_transaction.cc
+++ b/content/browser/indexed_db/indexed_db_transaction.cc
@@ -468,8 +468,8 @@ void IndexedDBTransaction::CloseOpenCursors() {
void IndexedDBTransaction::AddPendingObserver(
int32_t observer_id,
const IndexedDBObserver::Options& options) {
- pending_observers_.push_back(base::WrapUnique(
- new IndexedDBObserver(observer_id, object_store_ids_, options)));
+ pending_observers_.push_back(base::MakeUnique<IndexedDBObserver>(
+ observer_id, object_store_ids_, options));
}
void IndexedDBTransaction::RemovePendingObservers(
@@ -490,8 +490,7 @@ void IndexedDBTransaction::AddObservation(
if (it == connection_changes_map_.end()) {
it = connection_changes_map_
.insert(std::make_pair(
- connection_id,
- base::WrapUnique(new IndexedDBObserverChanges())))
+ connection_id, base::MakeUnique<IndexedDBObserverChanges>()))
.first;
}
it->second->AddObservation(std::move(observation));

Powered by Google App Engine
This is Rietveld 408576698