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

Unified Diff: third_party/WebKit/Source/devtools/front_end/persistence/FileSystemWorkspaceBinding.js

Issue 2697403003: DevTools: "Delete File" in navigator should actually delete a file (Closed)
Patch Set: address comments Created 3 years, 10 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/persistence/FileSystemWorkspaceBinding.js
diff --git a/third_party/WebKit/Source/devtools/front_end/persistence/FileSystemWorkspaceBinding.js b/third_party/WebKit/Source/devtools/front_end/persistence/FileSystemWorkspaceBinding.js
index fec928ab97abeb60429ceea063a348dcfe7358be..22a2ec401720fb389b39ab2425a5b015d2cdd2ad 100644
--- a/third_party/WebKit/Source/devtools/front_end/persistence/FileSystemWorkspaceBinding.js
+++ b/third_party/WebKit/Source/devtools/front_end/persistence/FileSystemWorkspaceBinding.js
@@ -542,11 +542,12 @@ Persistence.FileSystemWorkspaceBinding.FileSystem = class extends Workspace.Proj
/**
* @override
- * @param {string} path
+ * @param {!Workspace.UISourceCode} uiSourceCode
*/
- deleteFile(path) {
- this._fileSystem.deleteFile(path);
- this.removeUISourceCode(path);
+ deleteFile(uiSourceCode) {
+ var relativePath = this._filePathForUISourceCode(uiSourceCode);
+ this._fileSystem.deleteFile(relativePath);
+ this.removeUISourceCode(uiSourceCode.url());
}
/**

Powered by Google App Engine
This is Rietveld 408576698