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

Unified Diff: tools/testing/dart/drt_updater.dart

Issue 10264005: Suppress get_drt/dartium download if an executable is provided via flag (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « no previous file | tools/testing/dart/test_options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/drt_updater.dart
diff --git a/tools/testing/dart/drt_updater.dart b/tools/testing/dart/drt_updater.dart
index 9c3a6d436d03cbcc767796f7b6ad80666f2ab6b8..d7d53e1711848e5a01f6849b77b982c87c135c56 100644
--- a/tools/testing/dart/drt_updater.dart
+++ b/tools/testing/dart/drt_updater.dart
@@ -53,8 +53,13 @@ class _DartiumUpdater {
_DartiumUpdater _dumpRenderTreeUpdater;
_DartiumUpdater _dartiumUpdater;
-_DartiumUpdater runtimeUpdater(String runtime) {
- if (runtime == 'drt') {
+_DartiumUpdater runtimeUpdater(Map configuration) {
+ String runtime = configuration['runtime'];
+ if (!configuration.containsKey(runtime) || configuration[runtime] != '') {
Bill Hesse 2012/04/30 13:46:10 This seems totally wrong. I think configuration['
vsm 2012/04/30 14:00:33 I'm checking what you suggest. It's runtime the v
Bill Hesse 2012/05/01 08:03:33 Oh, I see. That is really tricky, and easy to ove
+ // Either the runtime executable does not require updating or an
+ // explicit path is provided via --drt or --dartium.
+ return null;
+ } else if (runtime == 'drt') {
if (_dumpRenderTreeUpdater === null) {
_dumpRenderTreeUpdater = new _DartiumUpdater('DumpRenderTree',
'get_drt.py');
« no previous file with comments | « no previous file | tools/testing/dart/test_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698