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

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

Issue 297683002: Remove DevTools instrumentation of Blink promises. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/core/inspector/InspectorInstrumentation.idl » ('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 0ff0a40aaa1be2c9a475a1c2bcd2f5b1b4ed4f8d..92d82a7f58e582577765269e9a651de7c5922871 100644
--- a/Source/core/inspector/InspectorDebuggerAgent.cpp
+++ b/Source/core/inspector/InspectorDebuggerAgent.cpp
@@ -765,47 +765,6 @@ void InspectorDebuggerAgent::didDeliverMutationRecords()
m_asyncCallStackTracker.didFireAsyncCall();
}
-void InspectorDebuggerAgent::didPostPromiseTask(ExecutionContext* context, ExecutionContextTask* task, bool isResolved)
-{
- if (m_asyncCallStackTracker.isEnabled())
- m_asyncCallStackTracker.didPostPromiseTask(context, task, isResolved, scriptDebugServer().currentCallFramesForAsyncStack());
-}
-
-void InspectorDebuggerAgent::willPerformPromiseTask(ExecutionContext* context, ExecutionContextTask* task)
-{
- if (m_asyncCallStackTracker.isEnabled())
- m_asyncCallStackTracker.willPerformPromiseTask(context, task);
-}
-
-void InspectorDebuggerAgent::didPerformPromiseTask()
-{
- if (m_asyncCallStackTracker.isEnabled())
- m_asyncCallStackTracker.didFireAsyncCall();
-}
-
-bool InspectorDebuggerAgent::isPromiseTrackerEnabled()
-{
- return m_promiseTracker.isEnabled();
-}
-
-void InspectorDebuggerAgent::didCreatePromise(const ScriptObject& promise)
-{
- if (m_promiseTracker.isEnabled())
- m_promiseTracker.didCreatePromise(promise);
-}
-
-void InspectorDebuggerAgent::didUpdatePromiseParent(const ScriptObject& promise, const ScriptObject& parentPromise)
-{
- if (m_promiseTracker.isEnabled())
- m_promiseTracker.didUpdatePromiseParent(promise, parentPromise);
-}
-
-void InspectorDebuggerAgent::didUpdatePromiseState(const ScriptObject& promise, V8PromiseCustom::PromiseState state, const ScriptValue& result)
-{
- if (m_promiseTracker.isEnabled())
- m_promiseTracker.didUpdatePromiseState(promise, state, result);
-}
-
void InspectorDebuggerAgent::pause(ErrorString*)
{
if (m_javaScriptPauseScheduled)
@@ -1244,7 +1203,6 @@ void InspectorDebuggerAgent::clear()
m_scripts.clear();
m_breakpointIdToDebugServerBreakpointIds.clear();
m_asyncCallStackTracker.clear();
- m_promiseTracker.clear();
m_continueToLocationBreakpointId = String();
clearBreakDetails();
m_javaScriptPauseScheduled = false;
@@ -1284,7 +1242,6 @@ void InspectorDebuggerAgent::reset()
m_scripts.clear();
m_breakpointIdToDebugServerBreakpointIds.clear();
m_asyncCallStackTracker.clear();
- m_promiseTracker.clear();
if (m_frontend)
m_frontend->globalObjectCleared();
}
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.h ('k') | Source/core/inspector/InspectorInstrumentation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698