| 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 class _DartiumUpdater { | 9 class _DartiumUpdater { |
| 10 String name; | 10 String name; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 _DartiumUpdater _dumpRenderTreeUpdater; | 52 _DartiumUpdater _dumpRenderTreeUpdater; |
| 53 _DartiumUpdater _dartiumUpdater; | 53 _DartiumUpdater _dartiumUpdater; |
| 54 | 54 |
| 55 _DartiumUpdater runtimeUpdater(Map configuration) { | 55 _DartiumUpdater runtimeUpdater(Map configuration) { |
| 56 String runtime = configuration['runtime']; | 56 String runtime = configuration['runtime']; |
| 57 if (runtime == 'drt' && configuration['drt'] == '') { | 57 if (runtime == 'drt' && configuration['drt'] == '') { |
| 58 // Download the default DumpRenderTree from Google Storage. | 58 // Download the default DumpRenderTree from Google Storage. |
| 59 if (_dumpRenderTreeUpdater === null) { | 59 if (_dumpRenderTreeUpdater === null) { |
| 60 _dumpRenderTreeUpdater = new _DartiumUpdater('DumpRenderTree', | 60 _dumpRenderTreeUpdater = new _DartiumUpdater('DumpRenderTree', |
| 61 'get_drt.py'); | 61 'get_archive.py', 'drt'); |
| 62 } | 62 } |
| 63 return _dumpRenderTreeUpdater; | 63 return _dumpRenderTreeUpdater; |
| 64 } else if (runtime == 'dartium' && configuration['dartium'] == '') { | 64 } else if (runtime == 'dartium' && configuration['dartium'] == '') { |
| 65 // Download the default Dartium from Google Storage. | 65 // Download the default Dartium from Google Storage. |
| 66 if (_dartiumUpdater === null) { | 66 if (_dartiumUpdater === null) { |
| 67 _dartiumUpdater = new _DartiumUpdater('Dartium Chrome', 'get_drt.py', | 67 _dartiumUpdater = new _DartiumUpdater('Dartium Chrome', 'get_archive.py', |
| 68 '--dartium'); | 68 'dartium'); |
| 69 } | 69 } |
| 70 return _dartiumUpdater; | 70 return _dartiumUpdater; |
| 71 } else { | 71 } else { |
| 72 return null; | 72 return null; |
| 73 } | 73 } |
| 74 } | 74 } |
| OLD | NEW |