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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesView.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/sources/SourcesView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
index 9aad4469aab00d2951779ab612ea9ac279797a04..01f1b96df57fec38cde8b49556e05bec0288f4d9 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
@@ -68,11 +68,8 @@ Sources.SourcesView = class extends UI.VBox {
if (event.returnValue)
return;
- var unsavedSourceCodes = [];
- var projects = Workspace.workspace.projectsForType(Workspace.projectTypes.FileSystem);
- for (var i = 0; i < projects.length; ++i)
- unsavedSourceCodes = unsavedSourceCodes.concat(projects[i].uiSourceCodes().filter(isUnsaved));
-
+ var unsavedSourceCodes =
+ Persistence.FileSystemWorkspaceBinding.uiSourceCodes(Workspace.workspace).filter(isUnsaved);
if (!unsavedSourceCodes.length)
return;

Powered by Google App Engine
This is Rietveld 408576698