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

Unified Diff: Source/web/ServiceWorkerGlobalScopeProxy.cpp

Issue 1264913002: [Extension ServiceWorkers] Blink: Passing v8::context to extensions dispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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: Source/web/ServiceWorkerGlobalScopeProxy.cpp
diff --git a/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/Source/web/ServiceWorkerGlobalScopeProxy.cpp
index 38b8c39e34613a7ae8d776fc7ec37f3711339930..798ac15567f2a197792cbe5893437751d0a398df 100644
--- a/Source/web/ServiceWorkerGlobalScopeProxy.cpp
+++ b/Source/web/ServiceWorkerGlobalScopeProxy.cpp
@@ -204,6 +204,13 @@ void ServiceWorkerGlobalScopeProxy::didEvaluateWorkerScript(bool success)
m_client.didEvaluateWorkerScript(success);
}
+void ServiceWorkerGlobalScopeProxy::didInitializeWorkerContext()
+{
+ ASSERT(m_workerGlobalScope);
+ ScriptState::Scope scope(m_workerGlobalScope->script()->scriptState());
+ m_client.didInitializeWorkerContext(m_workerGlobalScope->script()->context(), WebURL(m_document.url()));
+}
+
void ServiceWorkerGlobalScopeProxy::workerGlobalScopeStarted(WorkerGlobalScope* workerGlobalScope)
{
ASSERT(!m_workerGlobalScope);

Powered by Google App Engine
This is Rietveld 408576698