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

Unified Diff: Tools/GardeningServer/model/tree-status.html

Issue 728023004: Remove GardeningServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | « Tools/GardeningServer/model/test/tree-status-tests.html ('k') | Tools/GardeningServer/package.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/model/tree-status.html
diff --git a/Tools/GardeningServer/model/tree-status.html b/Tools/GardeningServer/model/tree-status.html
deleted file mode 100644
index f515849d4339f643f48776213f412dc28db977e8..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/model/tree-status.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!--
-Copyright 2014 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="../lib/net.html">
-
-<script>
-function TreeStatus(project) {
- this.project = project;
- this.message = '';
- this.status = 'unknown';
-
- this.url = "https://{1}-status.appspot.com/".assign(project);
-}
-
-TreeStatus.prototype.update = function() {
- var url = this.url + 'current?format=json';
- return net.json(url).then(function(response) {
- this.updateStatus(response);
- }.bind(this));
-};
-
-TreeStatus.prototype.updateStatus = function(status) {
- if (status.can_commit_freely) {
- this.message = null;
- this.status = 'open';
- return;
- }
-
- this.message = status.message + ' by ' + status.username;
- var responseLowerCase = status.message.toLowerCase();
- if (responseLowerCase.indexOf('throttled') != -1) {
- this.status = 'throttled';
- } else if (responseLowerCase.indexOf("closed") != -1) {
- this.status = 'closed';
- } else {
- this.status = 'unknown';
- }
-};
-</script>
« no previous file with comments | « Tools/GardeningServer/model/test/tree-status-tests.html ('k') | Tools/GardeningServer/package.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698