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

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

Issue 2501883002: DevTools: kill Bindings.NetworkMapping (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/SourceMapNamesResolver.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
index 92a6d0350dae8fc6e77fa7b02819892007c6f412..85b6d39ec104065352e77d78cc6f4aac8ea20854 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
@@ -39,7 +39,6 @@ Sources.SourcesPanel = class extends UI.Panel {
this._handleDrop.bind(this));
this._workspace = Workspace.workspace;
- this._networkMapping = Bindings.networkMapping;
this._togglePauseAction =
/** @type {!UI.Action }*/ (UI.actionRegistry.action('debugger.toggle-pause'));
@@ -814,7 +813,7 @@ Sources.SourcesPanel = class extends UI.Panel {
uiSourceCode.project().type() === Workspace.projectTypes.ContentScripts) {
if (!this._workspace.projects().filter(filterProject).length)
return;
- if (this._networkMapping.uiSourceCodeForURLForAnyTarget(uiSourceCode.url()) === uiSourceCode) {
+ if (this._workspace.uiSourceCodeForURL(uiSourceCode.url()) === uiSourceCode) {
contextMenu.appendItem(
Common.UIString.capitalize('Map to ^file ^system ^resource\u2026'),
this.mapNetworkToFileSystem.bind(this, uiSourceCode));
@@ -916,7 +915,7 @@ Sources.SourcesPanel = class extends UI.Panel {
if (!(target instanceof SDK.NetworkRequest))
return;
var request = /** @type {!SDK.NetworkRequest} */ (target);
- var uiSourceCode = this._networkMapping.uiSourceCodeForURLForAnyTarget(request.url);
+ var uiSourceCode = this._workspace.uiSourceCodeForURL(request.url);
if (!uiSourceCode)
return;
var openText = Common.UIString.capitalize('Open in Sources ^panel');
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/SourceMapNamesResolver.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698