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

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

Issue 2623143002: DevTools: insert console message decorations in order
Patch Set: address design comments Created 3 years, 11 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/ThreadsSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/ThreadsSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/sources/ThreadsSidebarPane.js
index 8247d9e5001c12e635ddfe55cc8c67d7cac758e9..0f7ac280be884dd1d48c050f3f2e9722e6e9aa31 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/ThreadsSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/ThreadsSidebarPane.js
@@ -192,7 +192,8 @@ Sources.ThreadsSidebarPane = class extends UI.VBox {
if (!target)
return pendingTarget.name();
var executionContext = target.runtimeModel.defaultExecutionContext();
- return executionContext && executionContext.label() ? executionContext.label() : target.name();
+ var label = executionContext ? executionContext.label(true /* showStatus */) : null;
+ return label || target.name();
}
/**
@@ -213,8 +214,8 @@ Sources.ThreadsSidebarPane = class extends UI.VBox {
return;
var pendingTarget = this._targetToPending.get(executionContext.target());
var listItem = this._pendingToListItem.get(pendingTarget);
- if (listItem && executionContext.label())
- listItem.setTitle(executionContext.label());
+ if (listItem && executionContext.label(true /* showStatus */))
+ listItem.setTitle(executionContext.label(true /* showStatus */));
}
/**

Powered by Google App Engine
This is Rietveld 408576698