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

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

Issue 2376583002: DevTools: remove WI.NetworkMapping.networkURL (Closed)
Patch Set: do not blackbox fs uiSourceCodes Created 4 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
Index: third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js
index 6b1f77ff292b321c3af6d36c77ec9de270709fed..85fb0a2271222061e173a2da2e8e396c857df551 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js
@@ -47,11 +47,11 @@ WebInspector.SourcesSearchScope._filesComparator = function(uiSourceCode1, uiSou
return -1;
if (!uiSourceCode1.isDirty() && uiSourceCode2.isDirty())
return 1;
- var networkURL1 = WebInspector.networkMapping.networkURL(uiSourceCode1);
- var networkURL2 = WebInspector.networkMapping.networkURL(uiSourceCode2);
- if (networkURL1 && !networkURL2)
+ var url1 = uiSourceCode1.url();
+ var url2 = uiSourceCode2.url();
+ if (url1 && !url2)
return -1;
- if (!networkURL1 && networkURL2)
+ if (!url1 && url2)
return 1;
return String.naturalOrderComparator(uiSourceCode1.fullDisplayName(), uiSourceCode2.fullDisplayName());
}

Powered by Google App Engine
This is Rietveld 408576698