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

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

Issue 2529303003: DevTools: move FileSystemMapping from Workspace to Persistence (Closed)
Patch Set: fix tests 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
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 cf933de55a06e1f0fdd09966b3a18b2ff02a80f4..553c47c0b5b66799a5ca75e27b6d42b4601d27f6 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
@@ -751,7 +751,8 @@ Sources.SourcesPanel = class extends UI.Panel {
if (!networkUISourceCode)
return;
var fileSystemPath = Persistence.FileSystemWorkspaceBinding.fileSystemPath(uiSourceCode.project().id());
- Workspace.fileSystemMapping.addMappingForResource(networkUISourceCode.url(), fileSystemPath, uiSourceCode.url());
+ Persistence.fileSystemMapping.addMappingForResource(
+ networkUISourceCode.url(), fileSystemPath, uiSourceCode.url());
}
}
@@ -769,7 +770,8 @@ Sources.SourcesPanel = class extends UI.Panel {
if (!uiSourceCode)
return;
var fileSystemPath = Persistence.FileSystemWorkspaceBinding.fileSystemPath(uiSourceCode.project().id());
- Workspace.fileSystemMapping.addMappingForResource(networkUISourceCode.url(), fileSystemPath, uiSourceCode.url());
+ Persistence.fileSystemMapping.addMappingForResource(
+ networkUISourceCode.url(), fileSystemPath, uiSourceCode.url());
}
}
@@ -777,7 +779,7 @@ Sources.SourcesPanel = class extends UI.Panel {
* @param {!Workspace.UISourceCode} uiSourceCode
*/
_removeNetworkMapping(uiSourceCode) {
- Workspace.fileSystemMapping.removeMappingForURL(uiSourceCode.url());
+ Persistence.fileSystemMapping.removeMappingForURL(uiSourceCode.url());
}
/**

Powered by Google App Engine
This is Rietveld 408576698