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

Unified Diff: tools/variations/fieldtrial_util.py

Issue 1209743002: Generate a static struct from fieldtrial_testing_config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@codegen_nested_structs
Patch Set: fix gn build Created 5 years, 6 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
Index: tools/variations/fieldtrial_util.py
diff --git a/tools/variations/fieldtrial_util.py b/tools/variations/fieldtrial_util.py
index 4f2521538b79c8bb171bdc587256f832de8ce632..9f4a8712d9666ad3181623b1645bee7cd145ca2c 100644
--- a/tools/variations/fieldtrial_util.py
+++ b/tools/variations/fieldtrial_util.py
@@ -22,17 +22,11 @@ def _escape(str):
# Generate a list of command-line switches to enable field trials defined in
# fieldtrial_testing_config_*.json.
-def GenerateArgs(base_config_path, platform_config_path=None):
+def GenerateArgs(config_path):
+ print config_path
try:
- with open(base_config_path, 'r') as base_file:
+ with open(config_path, 'r') as base_file:
variations = json.load(base_file)
- if platform_config_path:
- try:
- with open(platform_config_path, 'r') as platform_file:
- platform_specifics = json.load(platform_file)
- variations.update(platform_specifics)
- except (IOError, ValueError):
- pass
except (IOError, ValueError):
return []

Powered by Google App Engine
This is Rietveld 408576698