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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.h

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/ScriptPromisePropertyBase.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.h b/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.h
index 4b0a07f269e3e148bd5df1d3b85e439694357664..2aa2cdc3f5b2fa2f2c1a9909b9efde5e442f842b 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.h
@@ -11,9 +11,9 @@
#include "core/CoreExport.h"
#include "core/dom/ContextLifecycleObserver.h"
#include "wtf/Compiler.h"
+#include "wtf/OwnPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
-#include <memory>
#include <v8.h>
namespace blink {
@@ -63,7 +63,7 @@ protected:
NEVER_INLINE void resetBase();
private:
- typedef Vector<std::unique_ptr<ScopedPersistent<v8::Object>>> WeakPersistentSet;
+ typedef Vector<OwnPtr<ScopedPersistent<v8::Object>>> WeakPersistentSet;
void resolveOrRejectInternal(v8::Local<v8::Promise::Resolver>);
v8::Local<v8::Object> ensureHolderWrapper(ScriptState*);

Powered by Google App Engine
This is Rietveld 408576698