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 1b400f06bf0f86cedfbcc3c88cd00eb09f9ef26c..27911600b8efe6b80004bf13f7c3f64b4c04fbc3 100644 |
--- a/third_party/WebKit/Source/modules/app_banner/BeforeInstallPromptEvent.cpp |
+++ b/third_party/WebKit/Source/modules/app_banner/BeforeInstallPromptEvent.cpp |
@@ -7,6 +7,7 @@ |
#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" |
@@ -51,7 +52,7 @@ |
} |
ScriptPromise BeforeInstallPromptEvent::userChoice(ScriptState* script_state) { |
- UseCounter::Count(script_state->GetExecutionContext(), |
+ UseCounter::Count(ExecutionContext::From(script_state), |
UseCounter::kBeforeInstallPromptEventUserChoice); |
// |m_binding| must be bound to allow the AppBannerService to resolve the |
// userChoice promise. |
@@ -74,7 +75,7 @@ |
"following preventDefault().")); |
} |
- UseCounter::Count(script_state->GetExecutionContext(), |
+ UseCounter::Count(ExecutionContext::From(script_state), |
UseCounter::kBeforeInstallPromptEventPrompt); |
prompt_called_ = true; |