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

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

Issue 6327011: Allow ADM(X) templates to manage both MACHINE and USER policies (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: tweaks Created 9 years, 11 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 | tools/grit/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 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 5
6 def GetConfigurationForBuild(defines): 6 def GetConfigurationForBuild(defines):
7 '''Returns a configuration dictionary for the given build that contains 7 '''Returns a configuration dictionary for the given build that contains
8 build-specific settings and information. 8 build-specific settings and information.
9 9
10 Args: 10 Args:
(...skipping 25 matching lines...) Expand all
36 'app_name': 'Google Chrome', 36 'app_name': 'Google Chrome',
37 'frame_name': 'Google Chrome Frame', 37 'frame_name': 'Google Chrome Frame',
38 'os_name': 'Google Chrome OS', 38 'os_name': 'Google Chrome OS',
39 'win_reg_key_name': 'Software\\Policies\\Google\\Chrome', 39 'win_reg_key_name': 'Software\\Policies\\Google\\Chrome',
40 'win_category_path': ['google', 'googlechrome'], 40 'win_category_path': ['google', 'googlechrome'],
41 'admx_namespace': 'Google.Policies.Chrome', 41 'admx_namespace': 'Google.Policies.Chrome',
42 'admx_prefix': 'chrome', 42 'admx_prefix': 'chrome',
43 } 43 }
44 else: 44 else:
45 raise Exception('Unknown build') 45 raise Exception('Unknown build')
46 config['win_group_policy_class'] = 'Machine' 46 config['win_group_policy_class'] = 'both'
47 config['win_supported_os'] = 'SUPPORTED_WINXPSP2' 47 config['win_supported_os'] = 'SUPPORTED_WINXPSP2'
48 if 'mac_bundle_id' in defines: 48 if 'mac_bundle_id' in defines:
49 config['mac_bundle_id'] = defines['mac_bundle_id'] 49 config['mac_bundle_id'] = defines['mac_bundle_id']
50 return config 50 return config
OLDNEW
« no previous file with comments | « no previous file | tools/grit/grit/format/policy_templates/writers/adm_writer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698