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

Unified Diff: scripts/slave/recipe_modules/amp/config.py

Issue 2142923002: Remove amp recipe module and related code (unused) (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 5 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 | « scripts/slave/recipe_modules/amp/api.py ('k') | scripts/slave/recipe_modules/amp/example.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/amp/config.py
diff --git a/scripts/slave/recipe_modules/amp/config.py b/scripts/slave/recipe_modules/amp/config.py
deleted file mode 100644
index 692f3309c07dfa26a09fbfef5199b74214610e0a..0000000000000000000000000000000000000000
--- a/scripts/slave/recipe_modules/amp/config.py
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from recipe_engine.config import config_item_context, ConfigGroup
-from recipe_engine.config import Single
-
-GS_BASE_URL = 'gs://chrome-amp-keys'
-
-def BaseConfig(**_kwargs):
- return ConfigGroup(
- pool = Single(basestring),
- api_key_file_url = Single(basestring),
- api_secret_file_url = Single(basestring),
- )
-
-config_ctx = config_item_context(BaseConfig)
-
-@config_ctx()
-def main_pool(c):
- SetDevicePoolConfigs(c, 'main_pool')
-
-@config_ctx()
-def commit_queue_pool(c):
- SetDevicePoolConfigs(c, 'commit_queue_pool')
-
-@config_ctx()
-def webview_pool(c): # pragma: no cover
- SetDevicePoolConfigs(c, 'webview_pool')
-
-@config_ctx()
-def low_end_pool(c): # pragma: no cover
- SetDevicePoolConfigs(c, 'low_end_pool')
-
-def SetDevicePoolConfigs(c, pool_name):
- c.pool = pool_name
- c.api_key_file_url = '%s/%s/%s' % (GS_BASE_URL, pool_name, 'api_key')
- c.api_secret_file_url = '%s/%s/%s' % (GS_BASE_URL, pool_name, 'api_secret')
« no previous file with comments | « scripts/slave/recipe_modules/amp/api.py ('k') | scripts/slave/recipe_modules/amp/example.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698