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

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

Issue 568363003: Speculative Layout Test fix for inspector/sources/debugger/promise-tracker.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | « LayoutTests/inspector/sources/debugger/promise-tracker.html ('k') | 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 0f1a9c2957aa522446827fd15933b434152511d7..ecde674d0ab600cf23ddb50c1d4e709e0a29f376 100644
--- a/Source/core/inspector/InspectorDebuggerAgent.cpp
+++ b/Source/core/inspector/InspectorDebuggerAgent.cpp
@@ -1183,10 +1183,12 @@ void InspectorDebuggerAgent::disablePromiseTracker(ErrorString*)
promiseTracker().setEnabled(false);
}
-void InspectorDebuggerAgent::getPromises(ErrorString*, RefPtr<Array<PromiseDetails> >& promises)
+void InspectorDebuggerAgent::getPromises(ErrorString* errorString, RefPtr<Array<PromiseDetails> >& promises)
{
- if (!promiseTracker().isEnabled())
+ if (!promiseTracker().isEnabled()) {
+ *errorString = "Promise tracking is disabled";
return;
+ }
promises = promiseTracker().promises();
}
« no previous file with comments | « LayoutTests/inspector/sources/debugger/promise-tracker.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698