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

Unified Diff: sky/examples/stocks2/lib/stock_data.dart

Issue 1148793005: Prepare StockList for use in stocks2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « sky/examples/stocks2/lib/stock_app.dart ('k') | sky/examples/stocks2/lib/stock_list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/stocks2/lib/stock_data.dart
diff --git a/sky/examples/stocks2/lib/stock_data.dart b/sky/examples/stocks2/lib/stock_data.dart
index 316b8711b3961cf3d97596a58c5ea59804996eed..d69f44275a8106e40c87aafdd23d654fc223f592 100644
--- a/sky/examples/stocks2/lib/stock_data.dart
+++ b/sky/examples/stocks2/lib/stock_data.dart
@@ -55,11 +55,11 @@ class StockDataFetcher {
final StockDataCallback callback;
StockDataFetcher(this.callback) {
- // _fetchNextChunk(); // TODO(ianh): crashes
+ _fetchNextChunk();
}
void _fetchNextChunk() {
- fetch('data/stock_data_${_currentChunk++}.json').then((Response response) {
+ fetch('../data/stock_data_${_currentChunk++}.json').then((Response response) {
String json = response.bodyAsString();
JsonDecoder decoder = new JsonDecoder();
« no previous file with comments | « sky/examples/stocks2/lib/stock_app.dart ('k') | sky/examples/stocks2/lib/stock_list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698