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

Unified Diff: third_party/WebKit/Source/devtools/front_end/extensions/ExtensionServer.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/extensions/ExtensionServer.js
diff --git a/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionServer.js b/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionServer.js
index 4d930b6397eb47ca2ebc18ab0a8470410ce590d9..8c3b4b0c933791261daeb34b3820d5d4fc078bf0 100644
--- a/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionServer.js
+++ b/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionServer.js
@@ -460,9 +460,7 @@ Extensions.ExtensionServer = class extends Common.Object {
if (!resources.has(contentProvider.contentURL()))
resources.set(contentProvider.contentURL(), this._makeResource(contentProvider));
}
- var uiSourceCodes = Workspace.workspace.uiSourceCodesForProjectType(Workspace.projectTypes.Network);
- uiSourceCodes =
- uiSourceCodes.concat(Workspace.workspace.uiSourceCodesForProjectType(Workspace.projectTypes.ContentScripts));
+ var uiSourceCodes = Bindings.NetworkProject.uiSourceCodes(Workspace.workspace);
uiSourceCodes.forEach(pushResourceData.bind(this));
for (var target of SDK.targetManager.targets(SDK.Target.Capability.DOM))
SDK.ResourceTreeModel.fromTarget(target).forAllResources(pushResourceData.bind(this));

Powered by Google App Engine
This is Rietveld 408576698