| 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 #import("dart:builtin"); | |
| 9 | 8 |
| 10 class _DartiumUpdater { | 9 class _DartiumUpdater { |
| 11 String name; | 10 String name; |
| 12 String script; | 11 String script; |
| 13 String option; | 12 String option; |
| 14 | 13 |
| 15 bool isActive = false; | 14 bool isActive = false; |
| 16 bool updated = false; | 15 bool updated = false; |
| 17 List onUpdated; | 16 List onUpdated; |
| 18 | 17 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // Download the default Dartium from Google Storage. | 65 // Download the default Dartium from Google Storage. |
| 67 if (_dartiumUpdater === null) { | 66 if (_dartiumUpdater === null) { |
| 68 _dartiumUpdater = new _DartiumUpdater('Dartium Chrome', 'get_drt.py', | 67 _dartiumUpdater = new _DartiumUpdater('Dartium Chrome', 'get_drt.py', |
| 69 '--dartium'); | 68 '--dartium'); |
| 70 } | 69 } |
| 71 return _dartiumUpdater; | 70 return _dartiumUpdater; |
| 72 } else { | 71 } else { |
| 73 return null; | 72 return null; |
| 74 } | 73 } |
| 75 } | 74 } |
| OLD | NEW |