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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/FilterSuggestionBuilder.js

Issue 2668413003: DevTools: extract NetworkConditionsSelector into its own module (Closed)
Patch Set: rebaseline Created 3 years, 10 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/network/FilterSuggestionBuilder.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/FilterSuggestionBuilder.js b/third_party/WebKit/Source/devtools/front_end/network/FilterSuggestionBuilder.js
index 46ef8573ede99d90b6c907cfa818e2f0e2d0e990..b837594b6b8e66dc339e075e87a0f7df2f2a4c89 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/FilterSuggestionBuilder.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/FilterSuggestionBuilder.js
@@ -89,11 +89,11 @@ Network.FilterSuggestionBuilder = class {
result = [];
/** @type {!Map<number, !Protocol.Network.ResourcePriority>} */
var numericToPriorityMap = new Map();
- Components.prioritySymbolToNumericMap().forEach((value, key) => numericToPriorityMap.set(value, key));
+ NetworkConditions.prioritySymbolToNumericMap().forEach((value, key) => numericToPriorityMap.set(value, key));
var sortedNumericPriorities = numericToPriorityMap.keysArray();
sortedNumericPriorities.sortNumbers();
var sortedPriorities = sortedNumericPriorities.map(value => numericToPriorityMap.get(value));
- var sortedPriorityLabels = sortedPriorities.map(value => Components.uiLabelForPriority(value));
+ var sortedPriorityLabels = sortedPriorities.map(value => NetworkConditions.uiLabelForPriority(value));
for (var value of sortedPriorityLabels) {
if (!resultSet.has(value))

Powered by Google App Engine
This is Rietveld 408576698