| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of app; | 5 part of app; |
| 6 | 6 |
| 7 class ChromiumTargetLister { | 7 class ChromiumTargetLister { |
| 8 /// Fetch the list of chromium [NetworkVMTargets]. | 8 /// Fetch the list of chromium [NetworkVMTargets]. |
| 9 static Future<List<WebSocketVMTarget>> fetch(String networkAddress) { | 9 static Future<List<WebSocketVMTarget>> fetch(String networkAddress) { |
| 10 if (networkAddress == null) { | 10 if (networkAddress == null) { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 if (loaded == null) { | 121 if (loaded == null) { |
| 122 return; | 122 return; |
| 123 } | 123 } |
| 124 for (var i = 0; i < loaded.length; i++) { | 124 for (var i = 0; i < loaded.length; i++) { |
| 125 loaded[i] = new WebSocketVMTarget.fromMap(loaded[i]); | 125 loaded[i] = new WebSocketVMTarget.fromMap(loaded[i]); |
| 126 } | 126 } |
| 127 this.history.addAll(loaded); | 127 this.history.addAll(loaded); |
| 128 _sort(); | 128 _sort(); |
| 129 } | 129 } |
| 130 } | 130 } |
| OLD | NEW |