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

Unified Diff: components/policy/tools/template_writers/writers/json_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/json_writer.py
diff --git a/components/policy/tools/template_writers/writers/json_writer.py b/components/policy/tools/template_writers/writers/json_writer.py
index eb56916f359b147fc2f90fb8d315c5a5d809f95b..32afb85d42a81932a5e78c6c56cb72ca2e8d1ac8 100755
--- a/components/policy/tools/template_writers/writers/json_writer.py
+++ b/components/policy/tools/template_writers/writers/json_writer.py
@@ -43,9 +43,6 @@ class JsonWriter(template_writer.TemplateWriter):
self._out.append('// ' + comment)
def WritePolicy(self, policy):
- if policy['type'] == 'external':
- # This type can only be set through cloud policy.
- return
example_value_str = json.dumps(policy['example_value'], sort_keys=True)
# Add comma to the end of the previous line.

Powered by Google App Engine
This is Rietveld 408576698