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

Unified Diff: Source/core/workers/WorkerThread.cpp

Issue 657213004: ServiceWorker: Issue a warning after initial execution of worker script (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add newline Created 6 years, 2 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/core/workers/WorkerThread.cpp
diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp
index 5be4464d3cd23ed3aab1fb1704f5741ad391f8c2..f0785b6814864e2537581e65c6e5f0cda43a8c9d 100644
--- a/Source/core/workers/WorkerThread.cpp
+++ b/Source/core/workers/WorkerThread.cpp
@@ -325,6 +325,12 @@ void WorkerThread::initialize()
postDelayedTask(createSameThreadTask(&WorkerThread::idleHandler, this), kShortIdleHandlerDelayMs);
}
+void WorkerThread::postInitialize()
+{
+ ASSERT(m_workerGlobalScope.get());
+ m_workerGlobalScope->postInitialize();
+}
+
void WorkerThread::cleanup()
{

Powered by Google App Engine
This is Rietveld 408576698