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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: 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 5e30bc957a1588bdd84a0302792700341522bbb2..ca3bcd78bc4204a0cdc80130149d0cf8cec8e541 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBValue.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBValue.cpp
@@ -7,7 +7,6 @@
#include "platform/blob/BlobData.h"
#include "public/platform/WebBlobInfo.h"
#include "public/platform/modules/indexeddb/WebIDBValue.h"
-#include "wtf/PtrUtil.h"
namespace blink {
@@ -20,8 +19,8 @@ IDBValue::IDBValue(const WebIDBValue& value)
IDBValue::IDBValue(PassRefPtr<SharedBuffer> data, const WebVector<WebBlobInfo>& webBlobInfo, IDBKey* primaryKey, const IDBKeyPath& keyPath)
: m_data(data)
- , m_blobData(wrapUnique(new Vector<RefPtr<BlobDataHandle>>()))
- , m_blobInfo(wrapUnique(new Vector<WebBlobInfo>(webBlobInfo.size())))
+ , m_blobData(adoptPtr(new Vector<RefPtr<BlobDataHandle>>()))
+ , m_blobInfo(adoptPtr(new Vector<WebBlobInfo>(webBlobInfo.size())))
, m_primaryKey(primaryKey && primaryKey->isValid() ? primaryKey : nullptr)
, m_keyPath(keyPath)
{
@@ -33,8 +32,8 @@ IDBValue::IDBValue(PassRefPtr<SharedBuffer> data, const WebVector<WebBlobInfo>&
IDBValue::IDBValue(const IDBValue* value, IDBKey* primaryKey, const IDBKeyPath& keyPath)
: m_data(value->m_data)
- , m_blobData(wrapUnique(new Vector<RefPtr<BlobDataHandle>>()))
- , m_blobInfo(wrapUnique(new Vector<WebBlobInfo>(value->m_blobInfo->size())))
+ , m_blobData(adoptPtr(new Vector<RefPtr<BlobDataHandle>>()))
+ , m_blobInfo(adoptPtr(new Vector<WebBlobInfo>(value->m_blobInfo->size())))
, m_primaryKey(primaryKey)
, m_keyPath(keyPath)
{

Powered by Google App Engine
This is Rietveld 408576698