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

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

Issue 111543005: DevTools: Restore capture async traces state on page navigation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 | « no previous file | no next file » | 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 43f0d19acad67ad9fce9bc0ad5edbc46b4e9d8ed..2dcc3a76a41ec3dc5e8a1624de35024a0055be6b 100644
--- a/Source/core/inspector/InspectorDebuggerAgent.cpp
+++ b/Source/core/inspector/InspectorDebuggerAgent.cpp
@@ -61,6 +61,7 @@ namespace DebuggerAgentState {
static const char debuggerEnabled[] = "debuggerEnabled";
static const char javaScriptBreakpoints[] = "javaScriptBreakopints";
static const char pauseOnExceptionsState[] = "pauseOnExceptionsState";
+static const char asyncCallStackDepth[] = "asyncCallStackDepth";
// Breakpoint properties.
static const char url[] = "url";
@@ -196,6 +197,7 @@ void InspectorDebuggerAgent::restore()
m_skipAllPauses = false;
m_state->setBoolean(DebuggerAgentState::skipAllPauses, false);
}
+ m_asyncCallStackTracker.setAsyncCallStackDepth(m_state->getLong(DebuggerAgentState::asyncCallStackDepth));
}
}
@@ -931,6 +933,7 @@ void InspectorDebuggerAgent::skipStackFrames(ErrorString* errorString, const Str
void InspectorDebuggerAgent::setAsyncCallStackDepth(ErrorString*, int depth)
{
+ m_state->setLong(DebuggerAgentState::asyncCallStackDepth, depth);
pfeldman 2013/12/10 17:20:54 You want to clear it in disable. Otherwise: - ena
aandrey 2013/12/11 08:14:18 Done.
m_asyncCallStackTracker.setAsyncCallStackDepth(depth);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698