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

Side by Side Diff: components/policy/tools/generate_policy_source.py

Issue 108513011: Move chrome/app/policy into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 '''python %prog [options] platform chromium_os_flag template 6 '''python %prog [options] platform chromium_os_flag template
7 7
8 platform specifies which platform source is being generated for 8 platform specifies which platform source is being generated for
9 and can be one of (win, mac, linux) 9 and can be one of (win, mac, linux)
10 chromium_os_flag should be 1 if this is a Chromium OS build 10 chromium_os_flag should be 1 if this is a Chromium OS build
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 def _WriteCloudPolicyDecoder(policies, os, f): 739 def _WriteCloudPolicyDecoder(policies, os, f):
740 f.write(CPP_HEAD) 740 f.write(CPP_HEAD)
741 for policy in policies: 741 for policy in policies:
742 if policy.is_supported and not policy.is_device_only: 742 if policy.is_supported and not policy.is_device_only:
743 _WritePolicyCode(f, policy) 743 _WritePolicyCode(f, policy)
744 f.write(CPP_FOOT) 744 f.write(CPP_FOOT)
745 745
746 746
747 if __name__ == '__main__': 747 if __name__ == '__main__':
748 sys.exit(main()) 748 sys.exit(main())
OLDNEW
« no previous file with comments | « components/policy/resources/policy_templates_zh-TW.xtb ('k') | components/policy/tools/make_policy_zip.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698