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

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

Issue 10035043: Update RestoreOnStartupPolicyHandler to translate to the correct preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor cleanup in CheckPolicySettings Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 # This data is in a separate file so that src/chrome/app/policy/PRESUBMIT.py 6 # This data is in a separate file so that src/chrome/app/policy/PRESUBMIT.py
7 # can load it too without having to load pyautolib. 7 # can load it too without having to load pyautolib.
8 8
9 # DO NOT import pyauto from here! This file is required to run a presubmit 9 # DO NOT import pyauto from here! This file is required to run a presubmit
10 # scripts that will always fail if pyautolib isn't available, which is common. 10 # scripts that will always fail if pyautolib isn't available, which is common.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 'ExtensionInstallBlacklist': 132 'ExtensionInstallBlacklist':
133 ('kExtensionInstallDenyList', ['*'], [], OS_ALL), 133 ('kExtensionInstallDenyList', ['*'], [], OS_ALL),
134 'ExtensionInstallWhitelist': 134 'ExtensionInstallWhitelist':
135 ('kExtensionInstallAllowList', ['lcncmkcnkcdbbanbjakcencbaoegdjlp'], 135 ('kExtensionInstallAllowList', ['lcncmkcnkcdbbanbjakcencbaoegdjlp'],
136 [], OS_ALL), 136 [], OS_ALL),
137 'ExtensionInstallForcelist': 137 'ExtensionInstallForcelist':
138 ('kExtensionInstallForceList', ['lcncmkcnkcdbbanbjakcencbaoegdjlp;' + 138 ('kExtensionInstallForceList', ['lcncmkcnkcdbbanbjakcencbaoegdjlp;' +
139 'https://clients2.google.com/service/update2/crx'], [], OS_ALL), 139 'https://clients2.google.com/service/update2/crx'], [], OS_ALL),
140 'ShowHomeButton': ('kShowHomeButton', True, [BROWSER], OS_ALL), 140 'ShowHomeButton': ('kShowHomeButton', True, [BROWSER], OS_ALL),
141 'DeveloperToolsDisabled': ('kDevToolsDisabled', True, [], OS_ALL), 141 'DeveloperToolsDisabled': ('kDevToolsDisabled', True, [], OS_ALL),
142 'RestoreOnStartup': (None, 0, [BROWSER], OS_ALL), 142 'RestoreOnStartup': (None, 5, [BROWSER], OS_ALL),
143 # TODO(joaodasilva): Should be BROWSER. http://crbug.com/97749 143 # TODO(joaodasilva): Should be BROWSER. http://crbug.com/97749
144 'RestoreOnStartupURLs': 144 'RestoreOnStartupURLs':
145 ('kURLsToRestoreOnStartup', ['chromium.org'], [], OS_ALL), 145 ('kURLsToRestoreOnStartup', ['chromium.org'], [], OS_ALL),
146 # TODO(joaodasilva): The banner is out of place. http://crbug.com/77791 146 # TODO(joaodasilva): The banner is out of place. http://crbug.com/77791
147 'BlockThirdPartyCookies': 147 'BlockThirdPartyCookies':
148 ('kBlockThirdPartyCookies', True, [CONTENT], OS_ALL), 148 ('kBlockThirdPartyCookies', True, [CONTENT], OS_ALL),
149 # TODO(joaodasilva): Should be BROWSER. http://crbug.com/97749 149 # TODO(joaodasilva): Should be BROWSER. http://crbug.com/97749
150 'DefaultSearchProviderEnabled': (None, False, [], OS_ALL), 150 'DefaultSearchProviderEnabled': (None, False, [], OS_ALL),
151 'DefaultSearchProviderName': (None, 'google.com', [], OS_ALL), 151 'DefaultSearchProviderName': (None, 'google.com', [], OS_ALL),
152 'DefaultSearchProviderKeyword': (None, 'google', [], OS_ALL), 152 'DefaultSearchProviderKeyword': (None, 'google', [], OS_ALL),
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 'DeviceMetricsReportingEnabled': (None, True, [], ['chromeos']), 264 'DeviceMetricsReportingEnabled': (None, True, [], ['chromeos']),
265 'DeviceEphemeralUsersEnabled': (None, True, [], ['chromeos']), 265 'DeviceEphemeralUsersEnabled': (None, True, [], ['chromeos']),
266 'DeviceIdleLogoutTimeout': (None, 60000, [], ['chromeos']), 266 'DeviceIdleLogoutTimeout': (None, 60000, [], ['chromeos']),
267 'DeviceIdleLogoutWarningDuration': (None, 15000, [], ['chromeos']), 267 'DeviceIdleLogoutWarningDuration': (None, 15000, [], ['chromeos']),
268 'DeviceLoginScreenSaverId': 268 'DeviceLoginScreenSaverId':
269 (None, 'lcncmkcnkcdbbanbjakcencbaoegdjlp', [], ['chromeos']), 269 (None, 'lcncmkcnkcdbbanbjakcencbaoegdjlp', [], ['chromeos']),
270 'DeviceLoginScreenSaverTimeout': (None, 30000, [], ['chromeos']), 270 'DeviceLoginScreenSaverTimeout': (None, 30000, [], ['chromeos']),
271 'DeviceStartUpUrls': (None, ['http://google.com'], [], ['chromeos']), 271 'DeviceStartUpUrls': (None, ['http://google.com'], [], ['chromeos']),
272 'DeviceAppPack': (None, [], [], ['chromeos']), 272 'DeviceAppPack': (None, [], [], ['chromeos']),
273 'DeviceAutoUpdateDisabled': (None, True, [], ['chromeos']), 273 'DeviceAutoUpdateDisabled': (None, True, [], ['chromeos']),
274 'DeviceTargetVersionPrefix': (None, '1412.', [], ['chromeos']),
275 'ReportDeviceLocation': (None, False, [], ['chromeos']),
Tyler Breisacher (Chromium) 2012/04/19 19:07:56 Had to add these because the presubmit complains t
Mattias Nissler (ping if slow) 2012/04/20 09:20:24 Yes, correct. Thanks!
274 276
275 # Chrome Frame policies: 277 # Chrome Frame policies:
276 'ChromeFrameRendererSettings': (None, 0, [], []), 278 'ChromeFrameRendererSettings': (None, 0, [], []),
277 'RenderInChromeFrameList': (None, ['google.com'], [], []), 279 'RenderInChromeFrameList': (None, ['google.com'], [], []),
278 'RenderInHostList': (None, ['google.com'], [], []), 280 'RenderInHostList': (None, ['google.com'], [], []),
279 'ChromeFrameContentTypes': (None, ['text/xml'], [], []), 281 'ChromeFrameContentTypes': (None, ['text/xml'], [], []),
280 'GCFUserDataDir': (None, '${user_name}/test-frame', [], []), 282 'GCFUserDataDir': (None, '${user_name}/test-frame', [], []),
281 'AdditionalLaunchParameters': (None, '--enable-media-stream', [], []), 283 'AdditionalLaunchParameters': (None, '--enable-media-stream', [], []),
282 } 284 }
OLDNEW
« chrome/browser/policy/configuration_policy_handler.cc ('K') | « chrome/test/functional/policy.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698