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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBTransaction.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/IDBTransaction.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp
index aa6524d1ebddae195ea237a791b8b3d7d2c62beb..6bb3ca61a33b0264f222d60b21cc4e6cbe01980e 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp
@@ -39,8 +39,6 @@
#include "modules/indexeddb/IDBObjectStore.h"
#include "modules/indexeddb/IDBOpenDBRequest.h"
#include "modules/indexeddb/IDBTracing.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
using blink::WebIDBDatabase;
@@ -65,9 +63,9 @@ namespace {
class DeactivateTransactionTask : public V8PerIsolateData::EndOfScopeTask {
public:
- static std::unique_ptr<DeactivateTransactionTask> create(IDBTransaction* transaction)
+ static PassOwnPtr<DeactivateTransactionTask> create(IDBTransaction* transaction)
{
- return wrapUnique(new DeactivateTransactionTask(transaction));
+ return adoptPtr(new DeactivateTransactionTask(transaction));
}
void run() override

Powered by Google App Engine
This is Rietveld 408576698