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

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: Review feedback 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 6b0df34a95390efe3b58ae64321cc9bf6db3fff1..5040dddf49fdcabdb0bc06ff18177f95b312c7a2 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));
« no previous file with comments | « content/browser/indexed_db/indexed_db_leveldb_coding.cc ('k') | content/browser/indexed_db/indexed_db_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698