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

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

Issue 1291613002: DevTools: make V8DebuggerAgent call Client instead of overriden methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed Client to only return defaultInjectedScript 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/core/inspector/WorkerDebuggerAgent.cpp
diff --git a/Source/core/inspector/WorkerDebuggerAgent.cpp b/Source/core/inspector/WorkerDebuggerAgent.cpp
index c7d8d716f6cf1bde7375b60d4be30dfd15768a17..aa69aaeebc233b880bf32647b40f6940cf27320f 100644
--- a/Source/core/inspector/WorkerDebuggerAgent.cpp
+++ b/Source/core/inspector/WorkerDebuggerAgent.cpp
@@ -63,22 +63,18 @@ DEFINE_TRACE(WorkerDebuggerAgent)
void WorkerDebuggerAgent::startListeningV8Debugger()
{
m_workerThreadDebugger->addListener(this);
+ InspectorDebuggerAgent::startListeningV8Debugger();
}
void WorkerDebuggerAgent::stopListeningV8Debugger()
{
m_workerThreadDebugger->removeListener(this);
+ InspectorDebuggerAgent::stopListeningV8Debugger();
}
-InjectedScript WorkerDebuggerAgent::injectedScriptForEval(ErrorString* error, const int* executionContextId)
+InjectedScript WorkerDebuggerAgent::defaultInjectedScript()
{
- if (!executionContextId)
- return injectedScriptManager()->injectedScriptFor(m_inspectedWorkerGlobalScope->script()->scriptState());
-
- InjectedScript injectedScript = injectedScriptManager()->injectedScriptForId(*executionContextId);
- if (injectedScript.isEmpty())
- *error = "Execution context with given id not found.";
- return injectedScript;
+ return injectedScriptManager()->injectedScriptFor(m_inspectedWorkerGlobalScope->script()->scriptState());
}
void WorkerDebuggerAgent::muteConsole()
« Source/core/inspector/V8DebuggerAgent.cpp ('K') | « Source/core/inspector/WorkerDebuggerAgent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698