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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/switch-file.html

Issue 1957053002: DevTools: simplify NetworkProject.addFileForURL method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 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
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/switch-file.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/switch-file.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/switch-file.html
index 6dd1250ced37931a15b3147eb6aa3c1c9f2ee30f..c58075e8fad207bd7a38a9c288094b06359b7579 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/switch-file.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/switch-file.html
@@ -9,8 +9,8 @@ function test()
var uiSourceCodes = [];
function addUISourceCode(url)
{
- var contentProvider = new WebInspector.StaticContentProvider(WebInspector.resourceTypes.Script, "");
- var uiSourceCode = WebInspector.NetworkProject.forTarget(InspectorTest.mainTarget).addFileForURL(url, contentProvider, InspectorTest.mainFrame(), false);
+ var contentProvider = new WebInspector.StaticContentProvider(WebInspector.resourceTypes.Script, "", url);
+ var uiSourceCode = WebInspector.NetworkProject.forTarget(InspectorTest.mainTarget).addFile(contentProvider, InspectorTest.mainFrame(), false);
uiSourceCodes.push(uiSourceCode);
}

Powered by Google App Engine
This is Rietveld 408576698