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

Unified Diff: components/policy/tools/template_writers/writers/plist_writer.py

Issue 2653823006: Include 'external' policies in grit output (admx, adm, doc etc.) (Closed)
Patch Set: Whitespace fix Created 3 years, 3 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: components/policy/tools/template_writers/writers/plist_writer.py
diff --git a/components/policy/tools/template_writers/writers/plist_writer.py b/components/policy/tools/template_writers/writers/plist_writer.py
index 08824582e33baa49eaff2b8294358b9d4ef7ad3c..7d0c9ab3fe932d8d01b61fe7cb77334eab9f4eca 100755
--- a/components/policy/tools/template_writers/writers/plist_writer.py
+++ b/components/policy/tools/template_writers/writers/plist_writer.py
@@ -36,6 +36,7 @@ class PListWriter(xml_formatted_writer.XMLFormattedWriter):
'main': 'boolean',
'list': 'array',
'dict': 'dictionary',
+ 'external': 'dictionary',
}
def _AddKeyValuePair(self, parent, key_string, value_tag):
@@ -101,9 +102,6 @@ class PListWriter(xml_formatted_writer.XMLFormattedWriter):
def WritePolicy(self, policy):
policy_name = policy['name']
policy_type = policy['type']
- if policy_type == 'external':
- # This type can only be set through cloud policy.
- return
dict = self.AddElement(self._array, 'dict')
self._AddStringKeyValuePair(dict, 'pfm_name', policy_name)

Powered by Google App Engine
This is Rietveld 408576698