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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp

Issue 2691333002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Created 3 years, 10 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
Index: third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp b/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp
index 98c5f0910ff6d960b39fd91322484fb5f0039e52..6a61ae04c5d10466c82e45537ea4ae918ba84288 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp
@@ -4,6 +4,7 @@
#include "modules/serviceworkers/InstallEvent.h"
+#include "bindings/core/v8/ScriptState.h"
#include "core/dom/ExceptionCode.h"
#include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
#include "public/platform/WebSecurityOrigin.h"
@@ -23,7 +24,7 @@ InstallEvent* InstallEvent::create(const AtomicString& type,
InstallEvent::~InstallEvent() {}
-void InstallEvent::registerForeignFetch(ExecutionContext* executionContext,
+void InstallEvent::registerForeignFetch(ScriptState* scriptState,
const ForeignFetchOptions& options,
ExceptionState& exceptionState) {
if (!isBeingDispatched()) {
@@ -55,6 +56,7 @@ void InstallEvent::registerForeignFetch(ExecutionContext* executionContext,
}
}
+ ExecutionContext* executionContext = scriptState->getExecutionContext();
ServiceWorkerGlobalScopeClient* client =
ServiceWorkerGlobalScopeClient::from(executionContext);

Powered by Google App Engine
This is Rietveld 408576698