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

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

Issue 2879943003: DevTools: render product badges behind the setting. (Closed)
Patch Set: removed module from the list. Created 3 years, 7 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 e07c2ac5fbe21ceba04574d2c49c3cbe0ac5952e..10beb24e9b87194b2b2098c1630b6a523459a19a 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
@@ -361,9 +361,9 @@ Network.NetworkRequestNode = class extends Network.NetworkNode {
/** @type {?Element} */
this._nameCell = null;
/** @type {?Element} */
- this._initiatorCell = null;
+ this._nameBadgeElement = null;
/** @type {?Element} */
- this._linkifiedInitiatorAnchor = null;
+ this._initiatorCell = null;
this._request = request;
this._isNavigationRequest = false;
this.selectable = true;
@@ -933,6 +933,9 @@ Network.NetworkRequestNode = class extends Network.NetworkNode {
iconElement.classList.add(this._request.resourceType().name());
cell.appendChild(iconElement);
+ if (!this._nameBadgeElement)
+ this._nameBadgeElement = this.parentView().badgePool.badgeForURL(this._request.parsedURL);
+ cell.appendChild(this._nameBadgeElement);
cell.createTextChild(this._request.networkManager().target().decorateLabel(this._request.name()));
this._appendSubtitle(cell, this._request.path());
cell.title = this._request.url();

Powered by Google App Engine
This is Rietveld 408576698