| Index: third_party/WebKit/Source/modules/app_banner/BeforeInstallPromptEvent.cpp
|
| diff --git a/third_party/WebKit/Source/modules/app_banner/BeforeInstallPromptEvent.cpp b/third_party/WebKit/Source/modules/app_banner/BeforeInstallPromptEvent.cpp
|
| index 27911600b8efe6b80004bf13f7c3f64b4c04fbc3..1b400f06bf0f86cedfbcc3c88cd00eb09f9ef26c 100644
|
| --- a/third_party/WebKit/Source/modules/app_banner/BeforeInstallPromptEvent.cpp
|
| +++ b/third_party/WebKit/Source/modules/app_banner/BeforeInstallPromptEvent.cpp
|
| @@ -7,7 +7,6 @@
|
| #include "core/dom/DOMException.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ExceptionCode.h"
|
| -#include "core/dom/ExecutionContext.h"
|
| #include "core/frame/UseCounter.h"
|
| #include "modules/app_banner/BeforeInstallPromptEventInit.h"
|
|
|
| @@ -52,7 +51,7 @@ Vector<String> BeforeInstallPromptEvent::platforms() const {
|
| }
|
|
|
| ScriptPromise BeforeInstallPromptEvent::userChoice(ScriptState* script_state) {
|
| - UseCounter::Count(ExecutionContext::From(script_state),
|
| + UseCounter::Count(script_state->GetExecutionContext(),
|
| UseCounter::kBeforeInstallPromptEventUserChoice);
|
| // |m_binding| must be bound to allow the AppBannerService to resolve the
|
| // userChoice promise.
|
| @@ -75,7 +74,7 @@ ScriptPromise BeforeInstallPromptEvent::prompt(ScriptState* script_state) {
|
| "following preventDefault()."));
|
| }
|
|
|
| - UseCounter::Count(ExecutionContext::From(script_state),
|
| + UseCounter::Count(script_state->GetExecutionContext(),
|
| UseCounter::kBeforeInstallPromptEventPrompt);
|
|
|
| prompt_called_ = true;
|
|
|