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

Unified Diff: Source/core/inspector/MainThreadDebugger.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/InspectorDebuggerAgent.cpp ('k') | Source/core/inspector/ScriptDebugListener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/MainThreadDebugger.cpp
diff --git a/Source/core/inspector/MainThreadDebugger.cpp b/Source/core/inspector/MainThreadDebugger.cpp
index 0ffe62d81a8c4ff6810e13ca1ae680f11678953b..9bf85c660edd05ddd2296f415e8004b51eb8708e 100644
--- a/Source/core/inspector/MainThreadDebugger.cpp
+++ b/Source/core/inspector/MainThreadDebugger.cpp
@@ -115,7 +115,10 @@ void MainThreadDebugger::addListener(ScriptDebugListener* listener, LocalFrame*
debugger()->enable();
m_listenersMap.set(localFrameRoot, listener);
String contextDataSubstring = "," + String::number(contextDebugId) + "]";
- debugger()->reportCompiledScripts(contextDataSubstring, listener);
+ Vector<ScriptDebugListener::ParsedScript> compiledScripts;
+ debugger()->getCompiledScripts(contextDataSubstring, compiledScripts);
+ for (size_t i = 0; i < compiledScripts.size(); i++)
+ listener->didParseSource(compiledScripts[i]);
}
void MainThreadDebugger::removeListener(ScriptDebugListener* listener, LocalFrame* localFrame)
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.cpp ('k') | Source/core/inspector/ScriptDebugListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698