Index: tracing/tracing/value/ui/related_histogram_set_span.html |
diff --git a/tracing/tracing/value/ui/related_histogram_set_span.html b/tracing/tracing/value/ui/related_histogram_set_span.html |
deleted file mode 100644 |
index 0cc3907f484222e867b1e2018be015d53ad7076d..0000000000000000000000000000000000000000 |
--- a/tracing/tracing/value/ui/related_histogram_set_span.html |
+++ /dev/null |
@@ -1,53 +0,0 @@ |
-<!DOCTYPE html> |
-<!-- |
-Copyright 2016 The Chromium Authors. All rights reserved. |
-Use of this source code is governed by a BSD-style license that can be |
-found in the LICENSE file. |
---> |
- |
-<link rel="import" href="/tracing/ui/analysis/analysis_link.html"> |
- |
-<dom-module id="tr-v-ui-related-histogram-set-span"> |
- <script> |
- 'use strict'; |
- Polymer({ |
- is: 'tr-v-ui-related-histogram-set-span', |
- |
- ready() { |
- this.diagnostic_ = undefined; |
- }, |
- |
- get diagnostic() { |
- return this.diagnostic_; |
- }, |
- |
- set diagnostic(d) { |
- this.diagnostic_ = d; |
- this.updateContents_(); |
- }, |
- |
- addLink_(selection, content) { |
- const link = document.createElement('tr-ui-a-analysis-link'); |
- link.setSelectionAndContent(selection, content); |
- Polymer.dom(this).appendChild(link); |
- Polymer.dom(this).appendChild(document.createElement('br')); |
- }, |
- |
- updateContents_() { |
- Polymer.dom(this).textContent = ''; |
- |
- const histogramNames = new Set(); |
- for (const hist of this.diagnostic) { |
- histogramNames.add(hist.name); |
- } |
- if (histogramNames.size > 1) { |
- this.addLink_(Array.from(histogramNames), 'Select All'); |
- } |
- |
- for (const hist of this.diagnostic) { |
- this.addLink_([hist.name], hist.name); |
- } |
- } |
- }); |
- </script> |
-</dom-module> |