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

Unified Diff: tracing/tracing/value/ui/diagnostic_map_table.html

Issue 2341623002: Display Histograms in value-set-table-cells. (Closed)
Patch Set: . Created 4 years, 3 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
« no previous file with comments | « tracing/tracing/value/histogram_test.html ('k') | tracing/tracing/value/ui/histogram_span.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/ui/diagnostic_map_table.html
diff --git a/tracing/tracing/value/ui/diagnostic_map_table.html b/tracing/tracing/value/ui/diagnostic_map_table.html
index dc8cdf7574294d94e948dbf9124f260b1084c4d1..508558a6010154e1d5e4870117e561038478c70f 100644
--- a/tracing/tracing/value/ui/diagnostic_map_table.html
+++ b/tracing/tracing/value/ui/diagnostic_map_table.html
@@ -56,7 +56,11 @@ found in the LICENSE file.
return {
title: title,
value: function(map) {
- return tr.v.ui.createDiagnosticSpan(map.get(title));
+ var diagnostic = map.get(title);
+ if (!diagnostic)
+ return '';
+
+ return tr.v.ui.createDiagnosticSpan(diagnostic);
}
};
}
« no previous file with comments | « tracing/tracing/value/histogram_test.html ('k') | tracing/tracing/value/ui/histogram_span.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698