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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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 6bb3ca61a33b0264f222d60b21cc4e6cbe01980e..aa6524d1ebddae195ea237a791b8b3d7d2c62beb 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp
@@ -39,6 +39,8 @@
#include "modules/indexeddb/IDBObjectStore.h"
#include "modules/indexeddb/IDBOpenDBRequest.h"
#include "modules/indexeddb/IDBTracing.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
using blink::WebIDBDatabase;
@@ -63,9 +65,9 @@ namespace {
class DeactivateTransactionTask : public V8PerIsolateData::EndOfScopeTask {
public:
- static PassOwnPtr<DeactivateTransactionTask> create(IDBTransaction* transaction)
+ static std::unique_ptr<DeactivateTransactionTask> create(IDBTransaction* transaction)
{
- return adoptPtr(new DeactivateTransactionTask(transaction));
+ return wrapUnique(new DeactivateTransactionTask(transaction));
}
void run() override

Powered by Google App Engine
This is Rietveld 408576698