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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js

Issue 2450973002: [DevTools] Inherit WI.Target from Protocol.Target. (Closed)
Patch Set: Created 4 years, 2 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/ui/UIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
index ba4d0820a469ab69105a6c7e05ec09d153f8a142..8b3eed21bac49e967811aec1682d4779e58d87b9 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
@@ -1899,26 +1899,6 @@ WebInspector.ThemeSupport.prototype = {
};
/**
- * @param {?NetworkAgent.ResourcePriority} priority
- * @return {string}
- */
-WebInspector.uiLabelForPriority = function(priority)
-{
- var labelMap = WebInspector.uiLabelForPriority._priorityToUILabel;
- if (!labelMap) {
- labelMap = new Map([
- [NetworkAgent.ResourcePriority.VeryLow, WebInspector.UIString("Lowest")],
- [NetworkAgent.ResourcePriority.Low, WebInspector.UIString("Low")],
- [NetworkAgent.ResourcePriority.Medium, WebInspector.UIString("Medium")],
- [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")],
- [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("Highest")]
- ]);
- WebInspector.uiLabelForPriority._priorityToUILabel = labelMap;
- }
- return labelMap.get(priority) || WebInspector.UIString("Unknown");
-};
-
-/**
* @param {string} url
* @param {string=} linkText
* @param {string=} classes

Powered by Google App Engine
This is Rietveld 408576698