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

Unified Diff: third_party/WebKit/Source/modules/app_banner/BeforeInstallPromptEvent.cpp

Issue 2815313002: Reland of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/battery/BatteryManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/battery/BatteryManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698