summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/bindings/core/v8/script_promise_property_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/bindings/core/v8/script_promise_property_test.cc')
-rw-r--r--chromium/third_party/blink/renderer/bindings/core/v8/script_promise_property_test.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium/third_party/blink/renderer/bindings/core/v8/script_promise_property_test.cc b/chromium/third_party/blink/renderer/bindings/core/v8/script_promise_property_test.cc
index 01950edf93e..5bc3a1935bd 100644
--- a/chromium/third_party/blink/renderer/bindings/core/v8/script_promise_property_test.cc
+++ b/chromium/third_party/blink/renderer/bindings/core/v8/script_promise_property_test.cc
@@ -71,7 +71,7 @@ class StubFunction : public ScriptFunction {
size_t& call_count_;
};
-class GarbageCollectedHolder : public GarbageCollectedScriptWrappable {
+class GarbageCollectedHolder final : public GarbageCollectedScriptWrappable {
public:
typedef ScriptPromiseProperty<Member<GarbageCollectedScriptWrappable>,
Member<GarbageCollectedScriptWrappable>,
@@ -89,8 +89,8 @@ class GarbageCollectedHolder : public GarbageCollectedScriptWrappable {
}
void Trace(blink::Visitor* visitor) override {
- GarbageCollectedScriptWrappable::Trace(visitor);
visitor->Trace(property_);
+ GarbageCollectedScriptWrappable::Trace(visitor);
}
private:
@@ -102,7 +102,7 @@ class ScriptPromisePropertyTestBase {
ScriptPromisePropertyTestBase()
: page_(DummyPageHolder::Create(IntSize(1, 1))) {
v8::HandleScope handle_scope(GetIsolate());
- other_script_state_ = ScriptStateForTesting::Create(
+ other_script_state_ = ScriptState::Create(
v8::Context::New(GetIsolate()),
DOMWrapperWorld::EnsureIsolatedWorld(GetIsolate(), 1));
}
@@ -115,7 +115,7 @@ class ScriptPromisePropertyTestBase {
return ToScriptStateForMainWorld(GetDocument().GetFrame());
}
DOMWrapperWorld& MainWorld() { return MainScriptState()->World(); }
- ScriptState* OtherScriptState() { return other_script_state_.get(); }
+ ScriptState* OtherScriptState() { return other_script_state_; }
DOMWrapperWorld& OtherWorld() { return other_script_state_->World(); }
ScriptState* CurrentScriptState() {
return ScriptState::Current(GetIsolate());
@@ -155,7 +155,7 @@ class ScriptPromisePropertyTestBase {
private:
std::unique_ptr<DummyPageHolder> page_;
- scoped_refptr<ScriptState> other_script_state_;
+ Persistent<ScriptState> other_script_state_;
};
// This is the main test class.