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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.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/NetworkDataGridNode.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
index cec8d42953cdaf88eb04bf3ac1b22172d72e9678..174969dfbad76bbf3f52d5ecd619c2cbb35c0ab7 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
@@ -373,7 +373,7 @@ Network.NetworkRequestNode = class extends Network.NetworkNode {
var bRequest = b.requestOrFirstKnownChildRequest();
if (!aRequest || !bRequest)
return !aRequest ? -1 : 1;
- var priorityMap = Components.prioritySymbolToNumericMap();
+ var priorityMap = NetworkConditions.prioritySymbolToNumericMap();
var aPriority = aRequest.initialPriority();
var aScore = aPriority ? priorityMap.get(aPriority) : 0;
aScore = aScore || 0;
@@ -634,7 +634,7 @@ Network.NetworkRequestNode = class extends Network.NetworkNode {
break;
case 'priority':
var priority = this._request.initialPriority();
- this._setTextAndTitle(cell, priority ? Components.uiLabelForPriority(priority) : '');
+ this._setTextAndTitle(cell, priority ? NetworkConditions.uiLabelForPriority(priority) : '');
break;
case 'connectionid':
this._setTextAndTitle(cell, this._request.connectionId);

Powered by Google App Engine
This is Rietveld 408576698