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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js

Issue 2536273003: [DevTools] Remove Workspace.projectTypes enum part1. (Closed)
Patch Set: Created 4 years, 1 month 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/bindings/ResourceScriptMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
index 4e10d760e832768fa5bcc4b4379a41a17c014890..ef706d1e8ad1fea20429f362ca3a5f31e3fa4e61 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
@@ -312,7 +312,7 @@ Bindings.ResourceScriptFile = class extends Common.Object {
}
_workingCopyCommitted(event) {
- if (this._uiSourceCode.project().type() === Workspace.projectTypes.Snippets)
+ if (this._uiSourceCode.project().canSetFileContent())
return;
if (!this._script)
return;

Powered by Google App Engine
This is Rietveld 408576698