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

Unified Diff: chrome/test/pyautolib/pyauto.py

Issue 9111022: Removed ConfigurationPolicyType and extended PolicyMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/pyautolib/pyauto.py
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
index 8f15d5dca1b483d6973ebf10184248ef5f789e7a..fb48e0066d229026cf8ea4e66f6b1510b020ec2c 100755
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -3334,7 +3334,8 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
return self._GetResultFromJSONRequest(cmd_dict, windex=-1)
def SetPolicies(self, managed_platform=None, recommended_platform=None,
- managed_cloud=None, recommended_cloud=None):
+ managed_cloud=None, recommended_cloud=None,
+ machine_scope=False):
"""Sets the policies on the browser. Always fails on official builds.
Args:
@@ -3346,6 +3347,8 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
cloud provider.
recommended_cloud: a dictionary with the policy values for the recommended
cloud provider.
+ machine_scope: True to set the policies as machine policies, False to set
+ them as user policies.
Leaving an argument to None will restore the default behavior for that
provider.
@@ -3356,7 +3359,8 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
'managed_cloud': managed_cloud,
'managed_platform': managed_platform,
'recommended_cloud': recommended_cloud,
- 'recommended_platform': recommended_platform
+ 'recommended_platform': recommended_platform,
+ 'machine_scope': machine_scope
}
return self._GetResultFromJSONRequest(cmd_dict)

Powered by Google App Engine
This is Rietveld 408576698