| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import types | 5 import types |
| 6 | 6 |
| 7 from slave.recipe_config import config_item_context, ConfigGroup | 7 from recipe_engine.config import config_item_context, ConfigGroup |
| 8 from slave.recipe_config import Single | 8 from recipe_engine.config import Single |
| 9 | 9 |
| 10 def BaseConfig(**_kwargs): | 10 def BaseConfig(**_kwargs): |
| 11 return ConfigGroup( | 11 return ConfigGroup( |
| 12 url = Single(basestring) | 12 url = Single(basestring) |
| 13 ) | 13 ) |
| 14 | 14 |
| 15 config_ctx = config_item_context(BaseConfig, {}, 'basic') | 15 config_ctx = config_item_context(BaseConfig, {}, 'basic') |
| 16 | 16 |
| 17 @config_ctx() | 17 @config_ctx() |
| 18 def production(c): | 18 def production(c): |
| 19 c.url = "https://chromeperf.appspot.com" | 19 c.url = "https://chromeperf.appspot.com" |
| 20 | 20 |
| 21 @config_ctx() | 21 @config_ctx() |
| 22 def testing(c): | 22 def testing(c): |
| 23 c.url = "https://chrome-perf.googleplex.com" | 23 c.url = "https://chrome-perf.googleplex.com" |
| OLD | NEW |