Chromium Code Reviews| Index: third_party/WebKit/Source/core/workers/WorkerThread.cpp |
| diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.cpp b/third_party/WebKit/Source/core/workers/WorkerThread.cpp |
| index a0ddad6d3d3000e42349f8ca5bffa22b7aa4876d..1a99ce04fb146ed1a81c743c257d05bc957a1485 100644 |
| --- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp |
| +++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp |
| @@ -71,7 +71,7 @@ public: |
| { |
| Microtask::performCheckpoint(m_workerThread->isolate()); |
| if (WorkerGlobalScope* globalScope = m_workerThread->workerGlobalScope()) { |
| - if (WorkerScriptController* scriptController = globalScope->script()) |
| + if (GlobalScopeScriptController* scriptController = globalScope->script()) |
| scriptController->rejectedPromises()->processQueue(); |
| if (globalScope->isClosing()) { |
| m_workerThread->workerReportingProxy().workerGlobalScopeClosed(); |
| @@ -295,13 +295,13 @@ void WorkerThread::initialize(PassOwnPtr<WorkerThreadStartupData> startupData) |
| m_workerGlobalScope = createWorkerGlobalScope(startupData); |
| m_workerGlobalScope->scriptLoaded(sourceCode.length(), cachedMetaData.get() ? cachedMetaData->size() : 0); |
| - // The corresponding call to didStopRunLoop() is in ~WorkerScriptController(). |
| + // The corresponding call to didStopRunLoop() is in GlobalScopeScriptController::dispose(). |
| didStartRunLoop(); |
| // Notify proxy that a new WorkerGlobalScope has been created and started. |
| m_workerReportingProxy.workerGlobalScopeStarted(m_workerGlobalScope.get()); |
| - WorkerScriptController* script = m_workerGlobalScope->script(); |
| + GlobalScopeScriptController* script = m_workerGlobalScope->script(); |
|
kinuko
2015/12/24 04:45:51
WorkerScriptController?
|
| if (!script->isExecutionForbidden()) |
| script->initializeContextIfNeeded(); |
| } |