Chromium Code Reviews| 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..091eaeb166934bb694c4311f634885e8c185e848 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/persistence/FileSystemWorkspaceBinding.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/persistence/FileSystemWorkspaceBinding.js |
| @@ -545,7 +545,11 @@ Persistence.FileSystemWorkspaceBinding.FileSystem = class extends Workspace.Proj |
| * @param {string} path |
| */ |
| deleteFile(path) { |
|
dgozman
2017/02/17 01:13:12
Let's pass the UISourceCode here instead.
lushnikov
2017/02/17 01:57:47
Done.
|
| - this._fileSystem.deleteFile(path); |
| + var uiSourceCode = this.uiSourceCodeForURL(path); |
| + if (!uiSourceCode) |
| + return; |
| + var relativePath = Persistence.FileSystemWorkspaceBinding.relativePath(uiSourceCode).join('/'); |
|
dgozman
2017/02/17 01:13:12
this._filePathForUISourceCode
lushnikov
2017/02/17 01:57:47
Done.
|
| + this._fileSystem.deleteFile(relativePath); |
| this.removeUISourceCode(path); |
| } |