Commit bdef0672 authored by Lutz Justen's avatar Lutz Justen Committed by Commit Bot

generate_extension_admx.py: Simplify root category name

Just use 'extension' instead of 'extension_<32-byte-hash>' as root
category name for brevity. The hash blew up the ADMX files quite a bit
since the root category is prepended to pretty much every ID.

Note that the categories are already namespaced by the hash, so the hash
is not necessary.

Bug: 900517
Test: manual
Change-Id: I74ec7d3463486525139bf895edbea84bef0afe12
Reviewed-on: https://chromium-review.googlesource.com/c/1338081
Commit-Queue: Lutz Justen <ljusten@chromium.org>
Reviewed-by: default avatarPavol Marko <pmarko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609297}
parent fa67133d
......@@ -66,15 +66,15 @@ class AdmxGenerator(object):
self._BeginAdmlTemplate()
self._BeginAdmxTemplate()
root_category_full_name = ('extension_' + self._extension_id)
root_category_name = 'extension'
# Add a category element for the root
self._AddCategory(self._extension_name, root_category_full_name,
self._AddCategory(self._extension_name, root_category_name,
'Google:Cat_Google')
properties = self._schema['properties']
for policy_name, policy_schema in properties.items():
self._AddPolicy(policy_name, policy_schema, root_category_full_name,
self._AddPolicy(policy_name, policy_schema, root_category_name,
self._REGISTRY_KEY)
return self._ToPrettyXml(self._admx_doc.toxml()), self._ToPrettyXml(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment