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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.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
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp
index d84143475422e960eef604e4b433909262e1961f..a8acb3641b26bfe3c172a1eeef558c9b8b8a7361 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp
@@ -5,6 +5,7 @@
#include "modules/serviceworkers/ServiceWorkerLinkResource.h"
#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/ScriptState.h"
#include "core/dom/Document.h"
#include "core/frame/DOMWindow.h"
#include "core/frame/LocalFrame.h"
@@ -81,7 +82,8 @@ void ServiceWorkerLinkResource::process() {
String errorMessage;
ServiceWorkerContainer* container = NavigatorServiceWorker::serviceWorker(
- &document, *document.frame()->domWindow()->navigator(), errorMessage);
+ ScriptState::forMainWorld(m_owner->document().frame()),
+ *document.frame()->domWindow()->navigator(), errorMessage);
if (!container) {
document.addConsoleMessage(ConsoleMessage::create(
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698