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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.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/BlackboxManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js b/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
index 6eabe872f160d94c8ddda5243faac834f364cac7..df54ceb266819f20e7d3dcc196eb3970b249c869 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
@@ -105,8 +105,7 @@ Bindings.BlackboxManager = class {
* @return {boolean}
*/
isBlackboxedUISourceCode(uiSourceCode) {
- var projectType = uiSourceCode.project().type();
- var isContentScript = projectType === Workspace.projectTypes.ContentScripts;
+ var isContentScript = Bindings.NetworkProject.isContentScriptUISourceCode(uiSourceCode);
if (isContentScript && Common.moduleSetting('skipContentScripts').get())
return true;
var url = this._uiSourceCodeURL(uiSourceCode);
@@ -183,7 +182,7 @@ Bindings.BlackboxManager = class {
* @return {?string}
*/
_uiSourceCodeURL(uiSourceCode) {
- return uiSourceCode.project().type() === Workspace.projectTypes.Debugger ? null : uiSourceCode.url();
+ return Bindings.DefaultScriptMapping.isDebuggerUISourceCode(uiSourceCode) ? null : uiSourceCode.url();
}
/**

Powered by Google App Engine
This is Rietveld 408576698