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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js

Issue 1564113003: DevTools: merge uisourcecode's url-alike members. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/Source/devtools/front_end/bindings/NetworkMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js
index a9a3bb9670885e75dc50ef79c2d7a883d8c8a927..6572eaabc61585b5214fe1f2d3a6d576560c306d 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js
@@ -77,9 +77,9 @@ WebInspector.NetworkMapping.prototype = {
{
if (uiSourceCode.project().type() === WebInspector.projectTypes.FileSystem) {
var fileSystemPath = this._fileSystemWorkspaceBinding.fileSystemPath(uiSourceCode.project().id());
- return this._urlForPath(fileSystemPath, uiSourceCode.path());
+ return this._urlForPath(fileSystemPath, uiSourceCode.url());
dgozman 2016/01/08 20:22:06 Calling urlForPath with url parameter is strange.
}
- return uiSourceCode.originURL();
+ return uiSourceCode.url();
},
/**
@@ -169,7 +169,7 @@ WebInspector.NetworkMapping.prototype = {
*/
uiSourceCodeForURLForAnyTarget: function(url)
{
- return this._fileSystemUISourceCodeForURL(url) || WebInspector.workspace.uiSourceCodeForOriginURL(url);
+ return this._fileSystemUISourceCodeForURL(url) || WebInspector.workspace.uiSourceCodeForURL(url);
},
/**
@@ -189,7 +189,7 @@ WebInspector.NetworkMapping.prototype = {
addMapping: function(networkUISourceCode, uiSourceCode)
{
var url = this.networkURL(networkUISourceCode);
- var path = uiSourceCode.path();
+ var path = uiSourceCode.url();
var fileSystemPath = this._fileSystemWorkspaceBinding.fileSystemPath(uiSourceCode.project().id());
this._fileSystemMapping.addMappingForResource(url, fileSystemPath, path);
},

Powered by Google App Engine
This is Rietveld 408576698