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

Unified Diff: chrome/tools/build/generate_policy_source.py

Issue 13619014: Change PolicyLoaderWin to load PReg files if possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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
« no previous file with comments | « chrome/browser/policy/policy_path_parser_win.cc ('k') | chrome_frame/chrome_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/build/generate_policy_source.py
diff --git a/chrome/tools/build/generate_policy_source.py b/chrome/tools/build/generate_policy_source.py
index 5809e84f19315b2dfcb75f4c3dd040ef068b9c63..089293398f5e5eaf9f25e0734ed4bca36208a22b 100755
--- a/chrome/tools/build/generate_policy_source.py
+++ b/chrome/tools/build/generate_policy_source.py
@@ -17,10 +17,8 @@ import sys
import textwrap
-CHROME_MANDATORY_SUBKEY = 'SOFTWARE\\\\Policies\\\\Google\\\\Chrome'
-CHROME_RECOMMENDED_SUBKEY = CHROME_MANDATORY_SUBKEY + '\\\\Recommended'
-CHROMIUM_MANDATORY_SUBKEY = 'SOFTWARE\\\\Policies\\\\Chromium'
-CHROMIUM_RECOMMENDED_SUBKEY = CHROMIUM_MANDATORY_SUBKEY + '\\\\Recommended'
+CHROME_POLICY_KEY = 'SOFTWARE\\\\Policies\\\\Google\\\\Chrome'
+CHROMIUM_POLICY_KEY = 'SOFTWARE\\\\Policies\\\\Chromium'
class PolicyDetails:
@@ -193,12 +191,9 @@ def _WritePolicyConstantHeader(policies, os, f):
'namespace policy {\n\n')
if os == 'win':
- f.write('// The windows registry path where mandatory policy '
+ f.write('// The windows registry path where Chrome policy '
'configuration resides.\n'
- 'extern const wchar_t kRegistryMandatorySubKey[];\n'
- '// The windows registry path where recommended policy '
- 'configuration resides.\n'
- 'extern const wchar_t kRegistryRecommendedSubKey[];\n\n')
+ 'extern const wchar_t kRegistryChromePolicyKey[];\n')
f.write('// Lists policy types mapped to their names and expected types.\n'
'// Used to initialize ConfigurationPolicyProviders.\n'
@@ -267,15 +262,11 @@ def _WritePolicyConstantSource(policies, os, f):
if os == 'win':
f.write('#if defined(GOOGLE_CHROME_BUILD)\n'
- 'const wchar_t kRegistryMandatorySubKey[] = '
- 'L"' + CHROME_MANDATORY_SUBKEY + '";\n'
- 'const wchar_t kRegistryRecommendedSubKey[] = '
- 'L"' + CHROME_RECOMMENDED_SUBKEY + '";\n'
+ 'const wchar_t kRegistryChromePolicyKey[] = '
+ 'L"' + CHROME_POLICY_KEY + '";\n'
'#else\n'
- 'const wchar_t kRegistryMandatorySubKey[] = '
- 'L"' + CHROMIUM_MANDATORY_SUBKEY + '";\n'
- 'const wchar_t kRegistryRecommendedSubKey[] = '
- 'L"' + CHROMIUM_RECOMMENDED_SUBKEY + '";\n'
+ 'const wchar_t kRegistryChromePolicyKey[] = '
+ 'L"' + CHROMIUM_POLICY_KEY + '";\n'
'#endif\n\n')
f.write('bool IsDeprecatedPolicy(const std::string& policy) {\n'
« no previous file with comments | « chrome/browser/policy/policy_path_parser_win.cc ('k') | chrome_frame/chrome_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698