| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #library("drt_updater"); | 5 library drt_updater; |
| 6 | 6 |
| 7 #import("dart:io"); | 7 import "dart:io"; |
| 8 | 8 |
| 9 #import("test_suite.dart"); | 9 import "test_suite.dart"; |
| 10 | 10 |
| 11 class _DartiumUpdater { | 11 class _DartiumUpdater { |
| 12 String name; | 12 String name; |
| 13 String script; | 13 String script; |
| 14 String option; | 14 String option; |
| 15 | 15 |
| 16 bool isActive = false; | 16 bool isActive = false; |
| 17 bool updated = false; | 17 bool updated = false; |
| 18 List onUpdated; | 18 List onUpdated; |
| 19 | 19 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // Download the default Dartium from Google Storage. | 75 // Download the default Dartium from Google Storage. |
| 76 if (_dartiumUpdater == null) { | 76 if (_dartiumUpdater == null) { |
| 77 _dartiumUpdater = new _DartiumUpdater('Dartium Chrome', 'get_archive.py', | 77 _dartiumUpdater = new _DartiumUpdater('Dartium Chrome', 'get_archive.py', |
| 78 'dartium'); | 78 'dartium'); |
| 79 } | 79 } |
| 80 return _dartiumUpdater; | 80 return _dartiumUpdater; |
| 81 } else { | 81 } else { |
| 82 return null; | 82 return null; |
| 83 } | 83 } |
| 84 } | 84 } |
| OLD | NEW |