| Index: third_party/WebKit/Source/modules/presentation/PresentationAvailabilityTest.cpp
|
| diff --git a/third_party/WebKit/Source/modules/presentation/PresentationAvailabilityTest.cpp b/third_party/WebKit/Source/modules/presentation/PresentationAvailabilityTest.cpp
|
| index 545a1404435501fb167e6ae4f2920220d654a7ba..664b62344108b14a94205faecfd08eb13a6b0012 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationAvailabilityTest.cpp
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationAvailabilityTest.cpp
|
| @@ -27,12 +27,12 @@ public:
|
|
|
| void SetUp() override
|
| {
|
| - m_scope.scriptState()->setExecutionContext(&m_page->document());
|
| + m_scope.getScriptState()->setExecutionContext(&m_page->document());
|
| }
|
|
|
| Page& page() { return m_page->page(); }
|
| LocalFrame& frame() { return m_page->frame(); }
|
| - ScriptState* scriptState() { return m_scope.scriptState(); }
|
| + ScriptState* getScriptState() { return m_scope.getScriptState(); }
|
|
|
| private:
|
| V8TestingScope m_scope;
|
| @@ -42,7 +42,7 @@ private:
|
| TEST_F(PresentationAvailabilityTest, NoPageVisibilityChangeAfterDetach)
|
| {
|
| const KURL url = URLTestHelpers::toKURL("https://example.com");
|
| - Persistent<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState());
|
| + Persistent<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(getScriptState());
|
| Persistent<PresentationAvailability> availability = PresentationAvailability::take(resolver, url, false);
|
|
|
| // These two calls should not crash.
|
|
|