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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V0CustomElementBinding.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/bindings/core/v8/V0CustomElementBinding.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V0CustomElementBinding.cpp b/third_party/WebKit/Source/bindings/core/v8/V0CustomElementBinding.cpp
index 518a1197cb4cfc1dc595bacbc23e6b9de7d94baa..91dcdd93af8eb4291a2d16496148931dde1be125 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V0CustomElementBinding.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V0CustomElementBinding.cpp
@@ -30,14 +30,11 @@
#include "bindings/core/v8/V0CustomElementBinding.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
-
namespace blink {
-std::unique_ptr<V0CustomElementBinding> V0CustomElementBinding::create(v8::Isolate* isolate, v8::Local<v8::Object> prototype)
+PassOwnPtr<V0CustomElementBinding> V0CustomElementBinding::create(v8::Isolate* isolate, v8::Local<v8::Object> prototype)
{
- return wrapUnique(new V0CustomElementBinding(isolate, prototype));
+ return adoptPtr(new V0CustomElementBinding(isolate, prototype));
}
V0CustomElementBinding::V0CustomElementBinding(v8::Isolate* isolate, v8::Local<v8::Object> prototype)

Powered by Google App Engine
This is Rietveld 408576698