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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.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/ScriptPromiseResolverTest.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp
index e1f7e55d10196a025f46719ad2c418adc7e42e5e..10a1cf50cf88fd09637470aceee8f49a60239f11 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp
@@ -11,7 +11,6 @@
#include "core/dom/Document.h"
#include "core/testing/DummyPageHolder.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include <memory>
#include <v8.h>
namespace blink {
@@ -63,7 +62,7 @@ public:
v8::MicrotasksScope::PerformCheckpoint(isolate());
}
- std::unique_ptr<DummyPageHolder> m_pageHolder;
+ OwnPtr<DummyPageHolder> m_pageHolder;
ScriptState* getScriptState() const { return ScriptState::forMainWorld(&m_pageHolder->frame()); }
ExecutionContext* getExecutionContext() const { return &m_pageHolder->document(); }
v8::Isolate* isolate() const { return getScriptState()->isolate(); }

Powered by Google App Engine
This is Rietveld 408576698