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

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

Issue 2481183002: Generate ADMX template for Chrome OS policies (Closed)
Patch Set: Couple of fixes after testing 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/chromeos_adml_writer.py
diff --git a/components/policy/tools/template_writers/writers/chromeos_adml_writer.py b/components/policy/tools/template_writers/writers/chromeos_adml_writer.py
new file mode 100755
index 0000000000000000000000000000000000000000..32c2073c7ea325e3c897a0e303a231b31a295039
--- /dev/null
+++ b/components/policy/tools/template_writers/writers/chromeos_adml_writer.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+
+import base64
+
+from writers import adml_writer
+
+
+def GetWriter(config):
+ '''Factory method for creating ADMLWriter objects for the Chrome OS platform.
+ See the constructor of TemplateWriter for description of arguments.
+ '''
+ return adml_writer.ADMLWriter(['chrome_os'], config)

Powered by Google App Engine
This is Rietveld 408576698