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

Unified Diff: tools/metrics/histograms/extract_histograms.py

Issue 513803005: Remove obsolete fieldtrial related code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/metrics/histograms/pretty_print.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/histograms/extract_histograms.py
diff --git a/tools/metrics/histograms/extract_histograms.py b/tools/metrics/histograms/extract_histograms.py
index 04a61d1bc74c2add313ec735fa79963b25a0739e..c2211c89b3a04c24cb58da614222338541919e58 100644
--- a/tools/metrics/histograms/extract_histograms.py
+++ b/tools/metrics/histograms/extract_histograms.py
@@ -42,9 +42,9 @@ XML below will generate the following five histograms:
<histogram_suffixes_list>
<histogram_suffixes name="BrowserType">
- <group name="Chrome"/>
- <group name="IE"/>
- <group name="Firefox"/>
+ <suffix name="Chrome"/>
+ <suffix name="IE"/>
+ <suffix name="Firefox"/>
<affected-histogram name="HistogramEnum"/>
</histogram_suffixes>
@@ -307,15 +307,9 @@ def _UpdateHistogramsWithSuffixes(tree, histograms):
"""
have_errors = False
- # TODO(yiyaoliu): Remove this part after fieldtrial is not used any more.
- if tree.getElementsByTagName('histogram_suffixes'):
- histogram_suffix_tag = 'histogram_suffixes'
- suffix_tag = 'suffix'
- with_tag = 'with-suffix'
- else:
- histogram_suffix_tag = 'fieldtrial'
- suffix_tag = 'group'
- with_tag = 'with-group'
+ histogram_suffix_tag = 'histogram_suffixes'
+ suffix_tag = 'suffix'
+ with_tag = 'with-suffix'
# Verify order of histogram_suffixes fields first.
last_name = None
« no previous file with comments | « no previous file | tools/metrics/histograms/pretty_print.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698