OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * Helper that fetches the tree status data from a server. | 6 * Helper that fetches the tree status data from a server. |
7 * | 7 * |
8 * The public method it exports is: | 8 * The public method it exports is: |
9 * DataFetcher.GetTreeStatusEntries(timeRange, callback) method. | 9 * DataFetcher.GetTreeStatusEntries(timeRange, callback) method. |
10 */ | 10 */ |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 function OnFetchedDataComplete(callback, text, error) { | 112 function OnFetchedDataComplete(callback, text, error) { |
113 var entries = []; | 113 var entries = []; |
114 var ok = ParseDataResponseAndAppend(entries, text, error); | 114 var ok = ParseDataResponseAndAppend(entries, text, error); |
115 // TODO(eroman): Fix login situation. | 115 // TODO(eroman): Fix login situation. |
116 if (!ok) | 116 if (!ok) |
117 alert("TODO: You probably aren't logged in; try doing that first."); | 117 alert("TODO: You probably aren't logged in; try doing that first."); |
118 callback(entries); | 118 callback(entries); |
119 } | 119 } |
120 | 120 |
121 })(); // Private implementation. | 121 })(); // Private implementation. |
OLD | NEW |