From fcb6206f78568e836649f27e5e82ee32fd59375a Mon Sep 17 00:00:00 2001 From: Thiago Perrotta Date: Fri, 22 Jul 2022 17:26:52 +0000 Subject: [PATCH] Add a fetch config for chrome (internal). Although many things are private, the existence of Chrome is not. This change has precedent, c.f. 04d16a561 for infra_internal. Bug: None Change-Id: I6fb9719a44c2e5f5cc492bacb442d9554b0d4480 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3779641 Reviewed-by: Aravind Vasudevan Commit-Queue: Thiago Perrotta Reviewed-by: Robbie Iannucci Commit-Queue: Aravind Vasudevan --- fetch_configs/chrome.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 fetch_configs/chrome.py diff --git a/fetch_configs/chrome.py b/fetch_configs/chrome.py new file mode 100644 index 000000000..8196fe703 --- /dev/null +++ b/fetch_configs/chrome.py @@ -0,0 +1,36 @@ +# Copyright (c) 2022 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. + +import sys + +import config_util # pylint: disable=import-error + + +# This class doesn't need an __init__ method, so we disable the warning +# pylint: disable=no-init +class Chrome(config_util.Config): + """Basic Config alias for Chrome -> Chromium.""" + + @staticmethod + def fetch_spec(props): + return { + 'alias': { + 'config': 'chromium', + 'props': [ + '--internal=True', + ], + }, + } + + @staticmethod + def expected_root(_props): + return '' + + +def main(argv=None): + return Chrome().handle_args(argv) + + +if __name__ == '__main__': + sys.exit(main(sys.argv))