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

Side by Side Diff: grit/format/policy_templates/writer_configuration.py

Issue 631223003: Include chromium version number in policy templates (Closed) Base URL: http://grit-i18n.googlecode.com/svn/trunk/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | grit/format/policy_templates/writers/adm_writer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6
7 def GetConfigurationForBuild(defines): 7 def GetConfigurationForBuild(defines):
8 '''Returns a configuration dictionary for the given build that contains 8 '''Returns a configuration dictionary for the given build that contains
9 build-specific settings and information. 9 build-specific settings and information.
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 'win_reg_recommended_key_name': 45 'win_reg_recommended_key_name':
46 'Software\\Policies\\Google\\Chrome\\Recommended', 46 'Software\\Policies\\Google\\Chrome\\Recommended',
47 'win_mandatory_category_path': ['google', 'googlechrome'], 47 'win_mandatory_category_path': ['google', 'googlechrome'],
48 'win_recommended_category_path': ['google', 'googlechrome_recommended'], 48 'win_recommended_category_path': ['google', 'googlechrome_recommended'],
49 'admx_namespace': 'Google.Policies.Chrome', 49 'admx_namespace': 'Google.Policies.Chrome',
50 'admx_prefix': 'chrome', 50 'admx_prefix': 'chrome',
51 'linux_policy_path': '/etc/opt/chrome/policies/', 51 'linux_policy_path': '/etc/opt/chrome/policies/',
52 } 52 }
53 else: 53 else:
54 raise Exception('Unknown build') 54 raise Exception('Unknown build')
55 if 'version' in defines:
56 config['version'] = defines['version']
55 config['win_group_policy_class'] = 'Both' 57 config['win_group_policy_class'] = 'Both'
56 config['win_supported_os'] = 'SUPPORTED_WINXPSP2' 58 config['win_supported_os'] = 'SUPPORTED_WINXPSP2'
57 if 'mac_bundle_id' in defines: 59 if 'mac_bundle_id' in defines:
58 config['mac_bundle_id'] = defines['mac_bundle_id'] 60 config['mac_bundle_id'] = defines['mac_bundle_id']
59 return config 61 return config
OLDNEW
« no previous file with comments | « no previous file | grit/format/policy_templates/writers/adm_writer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698