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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBValue.cpp

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 years, 1 month 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: third_party/WebKit/Source/modules/indexeddb/IDBValue.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBValue.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBValue.cpp
index 4081f05730711dfee420296e86401a51214f5cd2..476fa418bff662531783efe695b1b067446e948a 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBValue.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBValue.cpp
@@ -22,7 +22,7 @@ IDBValue::IDBValue(PassRefPtr<SharedBuffer> data,
IDBKey* primaryKey,
const IDBKeyPath& keyPath)
: m_data(data),
- m_blobData(wrapUnique(new Vector<RefPtr<BlobDataHandle>>())),
+ m_blobData(makeUnique<Vector<RefPtr<BlobDataHandle>>>()),
m_blobInfo(wrapUnique(new Vector<WebBlobInfo>(webBlobInfo.size()))),
m_primaryKey(primaryKey && primaryKey->isValid() ? primaryKey : nullptr),
m_keyPath(keyPath) {
@@ -37,7 +37,7 @@ IDBValue::IDBValue(const IDBValue* value,
IDBKey* primaryKey,
const IDBKeyPath& keyPath)
: m_data(value->m_data),
- m_blobData(wrapUnique(new Vector<RefPtr<BlobDataHandle>>())),
+ m_blobData(makeUnique<Vector<RefPtr<BlobDataHandle>>>()),
m_blobInfo(
wrapUnique(new Vector<WebBlobInfo>(value->m_blobInfo->size()))),
m_primaryKey(primaryKey),

Powered by Google App Engine
This is Rietveld 408576698