| Index: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp
|
| index 8fa3fc850ae7eb20789f136a34bc801685d258f8..1bf552c143ab89ab69106962de2da834c345befe 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp
|
| @@ -965,12 +965,6 @@ void V8DebuggerImpl::setAsyncCallStackDepth(V8DebuggerAgentImpl* agent, int dept
|
|
|
| if (m_maxAsyncCallStackDepth == maxAsyncCallStackDepth)
|
| return;
|
| -
|
| - if (maxAsyncCallStackDepth && !m_maxAsyncCallStackDepth)
|
| - m_client->enableAsyncInstrumentation();
|
| - else if (!maxAsyncCallStackDepth && m_maxAsyncCallStackDepth)
|
| - m_client->disableAsyncInstrumentation();
|
| -
|
| m_maxAsyncCallStackDepth = maxAsyncCallStackDepth;
|
| if (!maxAsyncCallStackDepth)
|
| allAsyncTasksCanceled();
|
| @@ -1000,10 +994,8 @@ void V8DebuggerImpl::asyncTaskCanceled(void* task)
|
|
|
| void V8DebuggerImpl::asyncTaskStarted(void* task)
|
| {
|
| - // Not enabled, return.
|
| if (!m_maxAsyncCallStackDepth)
|
| return;
|
| -
|
| m_currentTasks.push_back(task);
|
| AsyncTaskToStackTrace::iterator stackIt = m_asyncTaskStacks.find(task);
|
| // Needs to support following order of events:
|
|
|