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

Unified Diff: Source/core/inspector/WorkerThreadDebugger.cpp

Issue 1217773007: [DevTools] Replace reportCompiledScripts with explicit [get]compiledScripts. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: getCompiledScripts Created 5 years, 5 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 | « Source/core/inspector/V8Debugger.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/WorkerThreadDebugger.cpp
diff --git a/Source/core/inspector/WorkerThreadDebugger.cpp b/Source/core/inspector/WorkerThreadDebugger.cpp
index c0cbeb0217c8e1744d8e24116bcd45b24e5ac7ec..5116d86d259f9dd9d7bf2cc155f90a3f9fa65794 100644
--- a/Source/core/inspector/WorkerThreadDebugger.cpp
+++ b/Source/core/inspector/WorkerThreadDebugger.cpp
@@ -70,7 +70,10 @@ void WorkerThreadDebugger::addListener(ScriptDebugListener* listener)
ASSERT(!m_listener);
debugger()->enable();
m_listener = listener;
- debugger()->reportCompiledScripts(workerContextDebugId, listener);
+ Vector<ScriptDebugListener::ParsedScript> compiledScripts;
+ debugger()->getCompiledScripts(workerContextDebugId, compiledScripts);
+ for (size_t i = 0; i < compiledScripts.size(); i++)
+ listener->didParseSource(compiledScripts[i]);
}
void WorkerThreadDebugger::removeListener(ScriptDebugListener* listener)
« no previous file with comments | « Source/core/inspector/V8Debugger.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698