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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.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/sources/NavigatorView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
index b6babd0cf369bfb6a033c39a655953a1d1e1710f..0a517f822077166fe0214e78cab82bd4d618f5cb 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
@@ -615,7 +615,7 @@ Sources.NavigatorView = class extends UI.VBox {
_handleContextMenuDelete(uiSourceCode) {
var shouldDelete = window.confirm(Common.UIString('Are you sure you want to delete this file?'));
if (shouldDelete)
- uiSourceCode.project().deleteFile(uiSourceCode.url());
+ uiSourceCode.project().deleteFile(uiSourceCode);
}
/**

Powered by Google App Engine
This is Rietveld 408576698