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

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

Issue 1672443003: Fix devtools bugs Fix a spurious layout test failure (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/2454_1
Patch Set: Created 4 years, 10 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.h ('k') | Source/devtools/front_end/console/ConsoleView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorDebuggerAgent.cpp
diff --git a/Source/core/inspector/InspectorDebuggerAgent.cpp b/Source/core/inspector/InspectorDebuggerAgent.cpp
index 774575e842fe6634f2281e0bd9d638248789dad3..4c8307697e6e122075230ca3ce30a7eed1f67033 100644
--- a/Source/core/inspector/InspectorDebuggerAgent.cpp
+++ b/Source/core/inspector/InspectorDebuggerAgent.cpp
@@ -196,6 +196,9 @@ bool InspectorDebuggerAgent::checkEnabled(ErrorString* errorString)
void InspectorDebuggerAgent::enable()
{
+ if (dartAgent())
+ dartAgent()->enable(0);
+
m_instrumentingAgents->setInspectorDebuggerAgent(this);
// startListeningV8Debugger may result in reporting all parsed scripts to
// the agent so it should already be in enabled state by then.
@@ -209,6 +212,9 @@ void InspectorDebuggerAgent::enable()
void InspectorDebuggerAgent::disable()
{
+ if (dartAgent())
+ dartAgent()->disable(0);
+
m_state->setObject(DebuggerAgentState::javaScriptBreakpoints, JSONObject::create());
m_state->setLong(DebuggerAgentState::pauseOnExceptionsState, V8Debugger::DontPauseOnExceptions);
m_state->setString(DebuggerAgentState::skipStackPattern, "");
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.h ('k') | Source/devtools/front_end/console/ConsoleView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698