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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.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/bindings/BlackboxManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js b/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
index 5f20ec60fd80ac254bd3bb9442d2d8dc2e2580b7..e24342f8afa8a1bbff2232faf7b4b0ed7845044b 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
@@ -5,13 +5,11 @@
/**
* @constructor
* @param {!WebInspector.DebuggerWorkspaceBinding} debuggerWorkspaceBinding
- * @param {!WebInspector.NetworkMapping} networkMapping
* @implements {WebInspector.TargetManager.Observer}
*/
-WebInspector.BlackboxManager = function(debuggerWorkspaceBinding, networkMapping)
+WebInspector.BlackboxManager = function(debuggerWorkspaceBinding)
{
this._debuggerWorkspaceBinding = debuggerWorkspaceBinding;
- this._networkMapping = networkMapping;
WebInspector.targetManager.addModelListener(WebInspector.DebuggerModel, WebInspector.DebuggerModel.Events.ParsedScriptSource, this._parsedScriptSource, this);
WebInspector.targetManager.addModelListener(WebInspector.DebuggerModel, WebInspector.DebuggerModel.Events.GlobalObjectCleared, this._globalObjectCleared, this);
@@ -195,12 +193,7 @@ WebInspector.BlackboxManager.prototype = {
*/
_uiSourceCodeURL: function(uiSourceCode)
{
- var networkURL = this._networkMapping.networkURL(uiSourceCode);
- var projectType = uiSourceCode.project().type();
- if (projectType === WebInspector.projectTypes.Debugger)
- return null;
- var url = projectType === WebInspector.projectTypes.Formatter ? uiSourceCode.url() : networkURL;
- return url ? url : null;
+ return uiSourceCode.project().type() === WebInspector.projectTypes.Debugger ? null : uiSourceCode.url();
},
/**

Powered by Google App Engine
This is Rietveld 408576698