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

Unified Diff: tracing/tracing/metrics/ui/system_health/system_health_span.html

Issue 1772833002: Remove SystemHealthMetric (fka RAILScore) (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: fix pi test Created 4 years, 9 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: tracing/tracing/metrics/ui/system_health/system_health_span.html
diff --git a/tracing/tracing/metrics/ui/system_health/system_health_span.html b/tracing/tracing/metrics/ui/system_health/system_health_span.html
deleted file mode 100644
index 99291adac9ad0a686749ac60ff98375314529b57..0000000000000000000000000000000000000000
--- a/tracing/tracing/metrics/ui/system_health/system_health_span.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2015 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/metrics/system_health/system_health_metric.html">
-<link rel="import" href="/tracing/ui/base/utils.html">
-
-<polymer-element name="tr-metrics-ui-sh-system-health-span">
- <template>
- <style>
- :host {
- display: flex;
- align-items: center;
- }
- span {
- flex-shrink: 0;
- }
- </style>
- <span id="content">
- <span>System Health: </span><span id="score"></span>
- </span>
- </template>
- <script>
- 'use strict';
-
- Polymer({
- created: function() {
- this.model_ = undefined;
- },
-
- ready: function() {
- this.updateContent_();
- },
-
- get model() {
- return this.model_;
- },
-
- set model(model) {
- this.model_ = model;
- this.updateContent_();
- },
-
- updateContent_: function() {
- if (this.model_ === undefined) {
- this.$.content.style.display = 'none';
- return;
- }
- this.$.content.style.display = '';
- var overallScore = tr.metrics.sh.SystemHealthMetric.forModel(this.model_);
- if (overallScore === undefined) {
- this.$.score.textContent = '';
- return;
- }
- this.$.score.textContent = tr.ui.b.toThreeDigitLocaleString(overallScore);
- }
- });
- </script>
-</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698