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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/FilteredUISourceCodeListDelegate.js

Issue 1564113003: DevTools: merge uisourcecode's url-alike members. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed 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/sources/FilteredUISourceCodeListDelegate.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/FilteredUISourceCodeListDelegate.js b/third_party/WebKit/Source/devtools/front_end/sources/FilteredUISourceCodeListDelegate.js
index 11df86efbac84c4606ce9391437b29b1b122ea8d..50d4c8b8c33a62f26d572ee408777b22573bc0a6 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/FilteredUISourceCodeListDelegate.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/FilteredUISourceCodeListDelegate.js
@@ -80,7 +80,7 @@ WebInspector.FilteredUISourceCodeListDelegate.prototype = {
*/
itemKeyAt: function(itemIndex)
{
- return this._uiSourceCodes[itemIndex].fullDisplayName();
+ return this._uiSourceCodes[itemIndex].url();
},
/**
@@ -101,8 +101,8 @@ WebInspector.FilteredUISourceCodeListDelegate.prototype = {
this._scorer = new WebInspector.FilePathScoreFunction(query);
}
- var path = uiSourceCode.fullDisplayName();
- return score + 10 * this._scorer.score(path, null);
+ var url = uiSourceCode.url();
+ return score + 10 * this._scorer.score(url, null);
},
/**

Powered by Google App Engine
This is Rietveld 408576698