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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/Linkifier.js

Issue 2546473005: [DevTools] Remove unnecessary checks for project types. (Closed)
Patch Set: fixed comment Created 4 years 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/components/Linkifier.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js b/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
index 4492683065af9679dd8f7483e0cbc0f16ae151e7..a2a31523f74a882af3b70cc7d6a0e65fee4b962c 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
@@ -773,8 +773,7 @@ Components.Linkifier.ContentProviderContextMenuProvider = class {
if (contentProvider instanceof Workspace.UISourceCode) {
var uiSourceCode = /** @type {!Workspace.UISourceCode} */ (contentProvider);
- if (uiSourceCode.project().type() !== Workspace.projectTypes.FileSystem &&
- uiSourceCode.project().type() !== Workspace.projectTypes.Snippets)
+ if (!uiSourceCode.project().canSetFileContent())
contextMenu.appendItem(Common.UIString.capitalize('Save ^as...'), save.bind(null, true));
}
}

Powered by Google App Engine
This is Rietveld 408576698