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

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

Issue 2941623002: [Cleanup] Drop the redundant "type" attribute from enum entries. (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « tools/metrics/histograms/enums.xml ('k') | tools/metrics/histograms/print_style.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 c36334a7ee8ae765a82d23a6c8fa33ab0deda10f..879a749b0dc2ae35c9a9a829f3bbc1cf66bea65f 100644
--- a/tools/metrics/histograms/extract_histograms.py
+++ b/tools/metrics/histograms/extract_histograms.py
@@ -184,11 +184,6 @@ def _ExtractEnumsFromXmlTree(tree):
last_name = None
for enum in tree.getElementsByTagName('enum'):
- if enum.getAttribute('type') != 'int':
- logging.error('Unknown enum type %s', enum.getAttribute('type'))
- have_errors = True
- continue
-
name = enum.getAttribute('name')
if last_name is not None and name.lower() < last_name.lower():
logging.error('Enums %s and %s are not in alphabetical order',
« no previous file with comments | « tools/metrics/histograms/enums.xml ('k') | tools/metrics/histograms/print_style.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698