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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/ui-source-code-display-name.html

Issue 1609973002: DevTools: promisify ContentProvider.requestContent and all its clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 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
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/ui-source-code-display-name.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/ui-source-code-display-name.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/ui-source-code-display-name.html
index 534c4030afb33e5d28c0c2065645d349287c3fc8..aebd86e07a9e1291cb2fb03b41c383b30145d88b 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/ui-source-code-display-name.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/ui-source-code-display-name.html
@@ -8,10 +8,10 @@ function test()
function createContentProvider(url)
{
var contentProvider = new WebInspector.StaticContentProvider(WebInspector.resourceTypes.Script, "");
- contentProvider.requestContent = function(callback)
+ contentProvider.requestContent = function()
{
InspectorTest.addResult("Source requested for " + url);
- callback("");
+ return Promise.resolve("");
};
return contentProvider;
}

Powered by Google App Engine
This is Rietveld 408576698