update policies patch

This commit is contained in:
Alexander Frick 2024-05-14 02:38:41 -05:00
parent 8f8de9c344
commit 38e149292e

View file

@ -1,5 +1,5 @@
diff --git a/components/policy/tools/template_writers/writer_configuration.py b/components/policy/tools/template_writers/writer_configuration.py
index 8cb77158561d3..edd529b4753de 100755
index 283ea725c5a18..86bd75c6920f0 100755
--- a/components/policy/tools/template_writers/writer_configuration.py
+++ b/components/policy/tools/template_writers/writer_configuration.py
@@ -10,9 +10,6 @@ def GetConfigurationForBuild(defines):
@ -56,10 +56,10 @@ index 8cb77158561d3..edd529b4753de 100755
- }
- elif '_google_chrome' in defines or '_is_chrome_for_testing_branded' in defines:
+ if defines.get('_google_chrome', False) == True or defines.get('_is_chrome_for_testing_branded', False) == True:
linux_policy_path = '/etc/opt/chrome/policies/' if '_google_chrome' in defines else '/etc/opt/chrome_for_testing/policies/'
config = {
'build': 'chrome',
@@ -121,7 +80,43 @@ def GetConfigurationForBuild(defines):
if '_google_chrome' in defines:
linux_policy_path = '/etc/opt/chrome/policies/'
win_policy_path = 'Software\\Policies\\Google\\Chrome'
@@ -126,7 +85,43 @@ def GetConfigurationForBuild(defines):
'bundle_id': 'com.google.chrome.ios',
}
else: