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

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

Issue 2868543002: DevTools: move FileSystemMapping under persistence/ module (Closed)
Patch Set: fix copyright Created 3 years, 7 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/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 09cf0a8058b8f3b613ca0164b9fb8b043216be28..3b9f34577c01cb8e9312496405f25afe10293f2c 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
@@ -735,7 +735,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());
}
}
@@ -753,7 +754,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());
}
}
@@ -761,7 +763,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