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

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

Issue 849333003: DevTools: remove async operation's AsyncCallChain when the operation is complete (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 | « 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 5c127b63823b666559751ea85ec405ab60713b1d..6e37e6caaca730027cb0b976564b3d756f2ea30a 100644
--- a/Source/core/inspector/InspectorDebuggerAgent.cpp
+++ b/Source/core/inspector/InspectorDebuggerAgent.cpp
@@ -1136,10 +1136,12 @@ void InspectorDebuggerAgent::traceAsyncCallbackStarting(int operationId)
void InspectorDebuggerAgent::traceAsyncOperationCompleted(int operationId)
{
ASSERT(operationId > 0 || operationId == unknownAsyncOperationId);
+ if (operationId > 0) {
+ m_asyncOperations.remove(operationId);
+ m_asyncOperationsForStepInto.remove(operationId);
+ }
if (!m_performingAsyncStepIn)
return;
- if (operationId > 0)
- m_asyncOperationsForStepInto.remove(operationId);
if (!m_inAsyncOperationForStepInto && m_asyncOperationsForStepInto.isEmpty())
clearStepIntoAsync();
}
« 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