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

Side by Side Diff: chrome/test/functional/policy_prefs_ui.py

Issue 8896018: Add a policy pref for the --enable-memory-info flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing file with RegisterBooleanPref(). Created 9 years 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 # If this test is failing, please check these steps. 6 # If this test is failing, please check these steps.
7 # 7 #
8 # - You introduced a new policy: 8 # - You introduced a new policy:
9 # Cool! Edit |policies| below and add an entry for it. See the comment above 9 # Cool! Edit |policies| below and add an entry for it. See the comment above
10 # it for the format. 10 # it for the format.
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 'ImportHistory': (False, [], [ 'win', 'mac', 'linux' ]), 189 'ImportHistory': (False, [], [ 'win', 'mac', 'linux' ]),
190 'ImportHomepage': (False, [], [ 'win', 'mac', 'linux' ]), 190 'ImportHomepage': (False, [], [ 'win', 'mac', 'linux' ]),
191 'ImportSearchEngine': (False, [], [ 'win', 'mac', 'linux' ]), 191 'ImportSearchEngine': (False, [], [ 'win', 'mac', 'linux' ]),
192 'ImportSavedPasswords': (False, [], [ 'win', 'mac', 'linux' ]), 192 'ImportSavedPasswords': (False, [], [ 'win', 'mac', 'linux' ]),
193 'MaxConnectionsPerProxy': (32, []), 193 'MaxConnectionsPerProxy': (32, []),
194 'HideWebStorePromo': (True, []), 194 'HideWebStorePromo': (True, []),
195 'URLBlacklist': ([ 'google.com' ], []), 195 'URLBlacklist': ([ 'google.com' ], []),
196 'URLWhitelist': ([ 'google.com' ], []), 196 'URLWhitelist': ([ 'google.com' ], []),
197 'EnterpriseWebStoreURL': ('', []), 197 'EnterpriseWebStoreURL': ('', []),
198 'EnterpriseWebStoreName': ('', []), 198 'EnterpriseWebStoreName': ('', []),
199 'EnableMemoryInfo': (True, []),
199 200
200 # ChromeOS-only policies: 201 # ChromeOS-only policies:
201 'ChromeOsLockOnIdleSuspend': (True, [ PERSONAL ], [ 'chromeos' ]), 202 'ChromeOsLockOnIdleSuspend': (True, [ PERSONAL ], [ 'chromeos' ]),
202 'PolicyRefreshRate': (300000, [], [ 'chromeos' ]), 203 'PolicyRefreshRate': (300000, [], [ 'chromeos' ]),
203 'OpenNetworkConfiguration': ('', [], [ 'chromeos' ]), 204 'OpenNetworkConfiguration': ('', [], [ 'chromeos' ]),
204 205
205 # ChromeOS Device policies: 206 # ChromeOS Device policies:
206 'DevicePolicyRefreshRate': (300000, [], []), 207 'DevicePolicyRefreshRate': (300000, [], []),
207 'ChromeOsReleaseChannel': ('stable-channel', [], []), 208 'ChromeOsReleaseChannel': ('stable-channel', [], []),
208 'DeviceOpenNetworkConfiguration': ('', [], []), 209 'DeviceOpenNetworkConfiguration': ('', [], []),
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 338
338 self.SetPolicies(policy_dict) 339 self.SetPolicies(policy_dict)
339 self.assertTrue(self.IsBannerVisible()) 340 self.assertTrue(self.IsBannerVisible())
340 341
341 self.SetPolicies({}) 342 self.SetPolicies({})
342 self.assertFalse(self.IsBannerVisible()) 343 self.assertFalse(self.IsBannerVisible())
343 344
344 345
345 if __name__ == '__main__': 346 if __name__ == '__main__':
346 pyauto_functional.Main() 347 pyauto_functional.Main()
OLDNEW
« chrome/app/policy/policy_templates.json ('K') | « chrome/test/data/enterprise/chrome-reverse.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698