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

Unified Diff: grit/format/policy_templates/writers/admx_writer.py

Issue 692033002: Set the MAXLEN/maxLength attribute for strings in ADM[X] templates. (Closed) Base URL: https://chromium.googlesource.com/external/grit-i18n.git@master
Patch Set: fixed upload Created 6 years, 2 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: grit/format/policy_templates/writers/admx_writer.py
diff --git a/grit/format/policy_templates/writers/admx_writer.py b/grit/format/policy_templates/writers/admx_writer.py
index ceba51416c31ef6c9e38e62e0b34e4012d467324..37be4ab921ad36cd20d36a0aaf833f2c690e50a5 100644
--- a/grit/format/policy_templates/writers/admx_writer.py
+++ b/grit/format/policy_templates/writers/admx_writer.py
@@ -167,6 +167,7 @@ class ADMXWriter(xml_formatted_writer.XMLFormattedWriter):
attributes = {
'id': name,
'valueName': name,
+ 'maxLength': '1000000',
}
self.AddElement(parent, 'text', attributes)

Powered by Google App Engine
This is Rietveld 408576698