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

Unified Diff: appengine_apps/trooper_o_matic/model/json-graph-data.html

Issue 774323002: Moved trooper_o_matic to appengine/ (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 6 years 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: appengine_apps/trooper_o_matic/model/json-graph-data.html
diff --git a/appengine_apps/trooper_o_matic/model/json-graph-data.html b/appengine_apps/trooper_o_matic/model/json-graph-data.html
deleted file mode 100644
index 0b5adbb3441a4bdcc8b56f66cb3c59fd34cc1525..0000000000000000000000000000000000000000
--- a/appengine_apps/trooper_o_matic/model/json-graph-data.html
+++ /dev/null
@@ -1,30 +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 JSONGraphData(url) {
- this.rowItemsAvailable = false;
- this._url = url;
- this._formattedDataCache = null;
-}
-
-JSONGraphData.prototype.get = function() {
- if (this._formattedDataCache) {
- return Promise.resolve(this._formattedDataCache);
- }
- var self = this;
- return net.json({url: this._url}).then(function(data) {
- // Convert timestamps to Date objects.
- data.rows.forEach(function(row) {
- row[0] = new Date(row[0] * 1000);
- });
- self._formattedDataCache = data;
- return data;
- });
-};
-</script>

Powered by Google App Engine
This is Rietveld 408576698