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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.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/sources/SourcesNavigator.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
index 0e52b82ad483e1ed48037b54e28e8dc4eb42511c..a2bbc353f778141ff6c6a02f29fc358a7d904dc6 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
@@ -243,7 +243,7 @@ Sources.SnippetsNavigatorView = class extends Sources.NavigatorView {
*/
_handleEvaluateSnippet(uiSourceCode) {
var executionContext = UI.context.flavor(SDK.ExecutionContext);
- if (uiSourceCode.project().type() !== Workspace.projectTypes.Snippets || !executionContext)
+ if (!executionContext)
return;
Snippets.scriptSnippetModel.evaluateScriptSnippet(executionContext, uiSourceCode);
}

Powered by Google App Engine
This is Rietveld 408576698