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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js

Issue 2736853002: DevTools: Convert FilteredListWidget to use an optional provider (Closed)
Patch Set: missing timeout Created 3 years, 9 months 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/OpenResourceDialog.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js b/third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js
index e6bb0f3eb80ef6a562203a39a75321e64560c22f..3a32f4ed97587b9d31fb49d4c820338eb0f7bf41 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js
@@ -7,7 +7,7 @@
/**
* @unrestricted
*/
-Sources.OpenResourceDialog = class extends Sources.FilteredUISourceCodeListDelegate {
+Sources.OpenResourceDialog = class extends Sources.FilteredUISourceCodeListProvider {
/**
* @param {!Sources.SourcesView} sourcesView
* @param {!Map.<!Workspace.UISourceCode, number>} defaultScores
@@ -15,7 +15,6 @@ Sources.OpenResourceDialog = class extends Sources.FilteredUISourceCodeListDeleg
constructor(sourcesView, defaultScores) {
super(defaultScores);
this._sourcesView = sourcesView;
- this.populate();
}
/**
@@ -80,7 +79,7 @@ Sources.OpenResourceDialog = class extends Sources.FilteredUISourceCodeListDeleg
/**
* @unrestricted
*/
-Sources.SelectUISourceCodeForProjectTypesDialog = class extends Sources.FilteredUISourceCodeListDelegate {
+Sources.SelectUISourceCodeForProjectTypesDialog = class extends Sources.FilteredUISourceCodeListProvider {
/**
* @param {!Array.<string>} types
* @param {function(?Workspace.UISourceCode)} callback
@@ -89,7 +88,6 @@ Sources.SelectUISourceCodeForProjectTypesDialog = class extends Sources.Filtered
super();
this._types = types;
this._callback = callback;
- this.populate();
}
/**

Powered by Google App Engine
This is Rietveld 408576698