| OLD | NEW |
| 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 15 matching lines...) Expand all Loading... |
| 26 'app_name': 'Chromium', | 26 'app_name': 'Chromium', |
| 27 'frame_name': 'Chromium Frame', | 27 'frame_name': 'Chromium Frame', |
| 28 'os_name': 'Chromium OS', | 28 'os_name': 'Chromium OS', |
| 29 'win_reg_mandatory_key_name': 'Software\\Policies\\Chromium', | 29 'win_reg_mandatory_key_name': 'Software\\Policies\\Chromium', |
| 30 'win_reg_recommended_key_name': | 30 'win_reg_recommended_key_name': |
| 31 'Software\\Policies\\Chromium\\Recommended', | 31 'Software\\Policies\\Chromium\\Recommended', |
| 32 'win_mandatory_category_path': ['chromium'], | 32 'win_mandatory_category_path': ['chromium'], |
| 33 'win_recommended_category_path': ['chromium_recommended'], | 33 'win_recommended_category_path': ['chromium_recommended'], |
| 34 'admx_namespace': 'Chromium.Policies.Chromium', | 34 'admx_namespace': 'Chromium.Policies.Chromium', |
| 35 'admx_prefix': 'chromium', | 35 'admx_prefix': 'chromium', |
| 36 'linux_policy_path': '/etc/chromium/policies/', |
| 36 } | 37 } |
| 37 elif '_google_chrome' in defines: | 38 elif '_google_chrome' in defines: |
| 38 config = { | 39 config = { |
| 39 'build': 'chrome', | 40 'build': 'chrome', |
| 40 'app_name': 'Google Chrome', | 41 'app_name': 'Google Chrome', |
| 41 'frame_name': 'Google Chrome Frame', | 42 'frame_name': 'Google Chrome Frame', |
| 42 'os_name': 'Google Chrome OS', | 43 'os_name': 'Google Chrome OS', |
| 43 'win_reg_mandatory_key_name': 'Software\\Policies\\Google\\Chrome', | 44 'win_reg_mandatory_key_name': 'Software\\Policies\\Google\\Chrome', |
| 44 'win_reg_recommended_key_name': | 45 'win_reg_recommended_key_name': |
| 45 'Software\\Policies\\Google\\Chrome\\Recommended', | 46 'Software\\Policies\\Google\\Chrome\\Recommended', |
| 46 'win_mandatory_category_path': ['google', 'googlechrome'], | 47 'win_mandatory_category_path': ['google', 'googlechrome'], |
| 47 'win_recommended_category_path': ['google', 'googlechrome_recommended'], | 48 'win_recommended_category_path': ['google', 'googlechrome_recommended'], |
| 48 'admx_namespace': 'Google.Policies.Chrome', | 49 'admx_namespace': 'Google.Policies.Chrome', |
| 49 'admx_prefix': 'chrome', | 50 'admx_prefix': 'chrome', |
| 51 'linux_policy_path': '/etc/opt/chrome/policies/', |
| 50 } | 52 } |
| 51 else: | 53 else: |
| 52 raise Exception('Unknown build') | 54 raise Exception('Unknown build') |
| 53 config['win_group_policy_class'] = 'Both' | 55 config['win_group_policy_class'] = 'Both' |
| 54 config['win_supported_os'] = 'SUPPORTED_WINXPSP2' | 56 config['win_supported_os'] = 'SUPPORTED_WINXPSP2' |
| 55 if 'mac_bundle_id' in defines: | 57 if 'mac_bundle_id' in defines: |
| 56 config['mac_bundle_id'] = defines['mac_bundle_id'] | 58 config['mac_bundle_id'] = defines['mac_bundle_id'] |
| 57 return config | 59 return config |
| OLD | NEW |