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

Side by Side Diff: components/policy/resources/policy_templates.json

Issue 2374303002: cros: Added a new function to quick unlock api for checking unfinished pins. (Closed)
Patch Set: Rebased. Created 4 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
OLDNEW
1 { 1 {
2 # policy_templates.json - Metafile for policy templates 2 # policy_templates.json - Metafile for policy templates
3 # 3 #
4 # The content of this file is evaluated as a Python expression. 4 # The content of this file is evaluated as a Python expression.
5 # 5 #
6 # This file is used as input to generate the following policy templates: 6 # This file is used as input to generate the following policy templates:
7 # ADM, ADMX+ADML, MCX/plist and html documentation. 7 # ADM, ADMX+ADML, MCX/plist and html documentation.
8 # 8 #
9 # Policy templates are user interface definitions or documents about the 9 # Policy templates are user interface definitions or documents about the
10 # policies that can be used to configure Chrome. Each policy is a name-value 10 # policies that can be used to configure Chrome. Each policy is a name-value
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 # templates and documentation. The policy definition list that Chrome sees 132 # templates and documentation. The policy definition list that Chrome sees
133 # will include policies marked with 'future'. If a WIP policy isn't meant to 133 # will include policies marked with 'future'. If a WIP policy isn't meant to
134 # be seen by the policy providers either, the 'supported_on' key should be set 134 # be seen by the policy providers either, the 'supported_on' key should be set
135 # to an empty list. 135 # to an empty list.
136 # 136 #
137 # IDs: 137 # IDs:
138 # Since a Protocol Buffer definition is generated from this file, unique and 138 # Since a Protocol Buffer definition is generated from this file, unique and
139 # persistent IDs for all fields (but not for groups!) are needed. These are 139 # persistent IDs for all fields (but not for groups!) are needed. These are
140 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, 140 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
141 # because doing so would break the deployed wire format! 141 # because doing so would break the deployed wire format!
142 # For your editing convenience: highest ID currently used: 353 142 # For your editing convenience: highest ID currently used: 356
143 # 143 #
144 # Placeholders: 144 # Placeholders:
145 # The following placeholder strings are automatically substituted: 145 # The following placeholder strings are automatically substituted:
146 # $1 -> Google Chrome / Chromium 146 # $1 -> Google Chrome / Chromium
147 # $2 -> Google Chrome OS / Chromium OS 147 # $2 -> Google Chrome OS / Chromium OS
148 # $3 -> Google Chrome Frame / Chromium Frame 148 # $3 -> Google Chrome Frame / Chromium Frame
149 # $6 is reserved for doc_writer 149 # $6 is reserved for doc_writer
150 # 150 #
151 # Device Policy: 151 # Device Policy:
152 # An additional flag 'device_only' (optional, defaults to False) indicates 152 # An additional flag 'device_only' (optional, defaults to False) indicates
(...skipping 9041 matching lines...) Expand 10 before | Expand all | Expand 10 after
9194 9194
9195 Printer setup is completed upon the first use of a printer. PPDs are not 9195 Printer setup is completed upon the first use of a printer. PPDs are not
9196 downloaded until the printer is used. After that time, frequently used 9196 downloaded until the printer is used. After that time, frequently used
9197 PPDs are cached. 9197 PPDs are cached.
9198 9198
9199 This policy has no effect on whether users can configure printers on 9199 This policy has no effect on whether users can configure printers on
9200 individual devices. It is intended to be supplementary to the 9200 individual devices. It is intended to be supplementary to the
9201 configuration of printers by individual users.''', 9201 configuration of printers by individual users.''',
9202 }, 9202 },
9203 { 9203 {
9204 'name': 'QuickUnlockModeWhitelist', 9204 'name': 'QuickUnlock',
9205 'type': 'list', 9205 'type': 'group',
9206 'schema': { 9206 'caption': '''Quick unlock policies''',
9207 'type': 'array', 9207 'desc': '''Configures quick unlock related policies.''',
9208 'items': { 9208 'policies': [
9209 'type': 'string', 9209 {
9210 'enum': [ 9210 'name': 'QuickUnlockModeWhitelist',
9211 'all', 9211 'type': 'list',
9212 'PIN' 9212 'schema': {
9213 ], 9213 'type': 'array',
9214 }, 9214 'items': {
9215 'id': 'QuickUnlockModeWhitelist', 9215 'type': 'string',
9216 }, 9216 'enum': [
9217 'supported_on': ['chrome_os:56-'], 9217 'all',
9218 'features': { 9218 'PIN'
9219 'dynamic_refresh': True, 9219 ],
9220 'per_profile': True, 9220 },
9221 }, 9221 'id': 'QuickUnlockModeWhitelist',
9222 'example_value': ['PIN'], 9222 },
9223 'id': 352, 9223 'supported_on': ['chrome_os:56-'],
9224 'caption': '''Configure allowed quick unlock modes.''', 9224 'features': {
9225 'tags': [], 9225 'dynamic_refresh': True,
9226 'desc': '''Controls which quick unlock modes are allowed to be set up and used. 9226 'per_profile': True,
9227 This setting white-lists the allowed quick unlock modes that can be set up and used to unlock the lock screen. The value is a list of strings, each of whi ch should be one of the following: "all", "PIN". If "all" is selected, then all supported quick modes will be available, otherwise the modes in the list will be the ones available. 9227 },
9228 'example_value': ['PIN'],
9229 'id': 352,
9230 'caption': '''Configure allowed quick unlock modes.''',
9231 'tags': [],
9232 'desc': '''Controls which quick unlock modes are allowed to be set up and used.
9233 This setting white-lists the allowed quick unlock modes that can be se t up and used to unlock the lock screen. The value is a list of strings, each of which should be one of the following: "all", "PIN". If "all" is selected, then all supported quick modes will be available, otherwise the modes in the list wil l be the ones available.
9228 9234
9229 If this setting is configured, quick unlock modes which have a type that i s not on this list can not be set up or used. 9235 If this setting is configured, quick unlock modes which have a type th at is not on this list can not be set up or used.
9230 9236
9231 If this setting is left not configured, "PIN" mode will be enabled, and al l other modes will be disabled.''', 9237 If this setting is left not configured, "PIN" mode will be enabled, an d all other modes will be disabled.''',
9232 },
9233 {
9234 'name': 'QuickUnlockTimeout',
9235 'type': 'int-enum',
9236 'schema': {
9237 'type': 'integer',
9238 'enum': [ 0, 1, 2, 3 ],
9239 },
9240 'items': [
9241 {
9242 'name': 'SixHours',
9243 'value': 0,
9244 'caption': '''Password entry is required every six hours.''',
9245 }, 9238 },
9246 { 9239 {
9247 'name': 'TweleveHours', 9240 'name': 'QuickUnlockTimeout',
9248 'value': 1, 9241 'type': 'int-enum',
9249 'caption': '''Password entry is required every twelve hours.''', 9242 'schema': {
9243 'type': 'integer',
9244 'enum': [ 0, 1, 2, 3 ],
9245 },
9246 'items': [
9247 {
9248 'name': 'SixHours',
9249 'value': 0,
9250 'caption': '''Password entry is required every six hours.''',
9251 },
9252 {
9253 'name': 'TweleveHours',
9254 'value': 1,
9255 'caption': '''Password entry is required every twelve hours.''',
9256 },
9257 {
9258 'name': 'Day',
9259 'value': 2,
9260 'caption': '''Password entry is required every day (24 hours).''',
9261 },
9262 {
9263 'name': 'Week',
9264 'value': 3,
9265 'caption': '''Password entry is required every week (168 hours).'' ',
9266 },
9267 ],
9268 'supported_on': ['chrome_os:56-'],
pastarmovj 2016/12/08 09:02:19 nit: please bump up to 57 unless you are planning
sammiequon 2016/12/08 21:51:07 Done.
9269 'features': {
9270 'dynamic_refresh': True,
9271 'per_profile': True,
9272 },
9273 'example_value': 2,
9274 'id': 353,
9275 'caption': '''Sets how often user has to enter password to use quick u nlock.''',
9276 'tags': [],
9277 'desc': '''This setting controls how often the lock screen will reques t the password to be entered in order to continue using quick unlock. Each time the lock screen is entered, if the last password entry was more than this settin g, the quick unlock will not be available on entering the lock screen. Should th e user stay on the lock screen past this period of time, a password will be requ ested next time the user enters the wrong code, or re-enters the lock screen, wh ichever comes first.
9278
9279 If this setting is configured, users using quick unlock will be reques ted to enter their passwords on the lock screen depending on this setting.
9280
9281 If this setting is not configured, users using quick unlock will be re quested to enter their password on the lock screen every day.''',
9250 }, 9282 },
9251 { 9283 {
9252 'name': 'Day', 9284 'name': 'PinUnlockMinimumLength',
9253 'value': 2, 9285 'type': 'int',
9254 'caption': '''Password entry is required every day (24 hours).''', 9286 'schema': { 'type': 'integer' },
9287 'supported_on': ['chrome_os:56-'],
pastarmovj 2016/12/08 09:02:19 nit:ditto.
sammiequon 2016/12/08 21:51:07 Done.
9288 'features': {
9289 'dynamic_refresh': True,
9290 'per_profile': False,
pastarmovj 2016/12/08 09:02:19 Just a question here. Why are these policies below
sammiequon 2016/12/08 21:51:07 That is a mistake they should all be true. Done.
9291 },
9292 'example_value': 4,
9293 'id': 354,
9294 'caption': '''Sets the minimum length of the lock screen PIN.''',
9295 'tags': [],
9296 'desc': '''This setting controls the minimum length a PIN can be.
9297
9298 If this setting is configured to be less than 1, the minimum length a PIN can be is 1.
9299
9300 If this setting is not configured, the minimum length a PIN can be is 4.''',
9255 }, 9301 },
9256 { 9302 {
9257 'name': 'Week', 9303 'name': 'PinUnlockMaximumLength',
9258 'value': 3, 9304 'type': 'int',
9259 'caption': '''Password entry is required every week (168 hours).''', 9305 'schema': { 'type': 'integer' },
9306 'supported_on': ['chrome_os:56-'],
pastarmovj 2016/12/08 09:02:19 nit:ditto.
sammiequon 2016/12/08 21:51:07 Done.
9307 'features': {
9308 'dynamic_refresh': True,
9309 'per_profile': False,
9310 },
9311 'example_value': 0,
9312 'id': 355,
9313 'caption': '''Sets the maximum length of the lock screen PIN.''',
9314 'tags': [],
9315 'desc': '''This setting controls the maximum length a PIN can be.
9316
9317 If this setting is configured to be 0 or less, there is no maximum len gth and a user can set a PIN as long as they want.
9318
9319 If this setting is less than PinUnlockMinimumLength but greater than 0 , the maximum length is the same as the minimum length.
9320
9321 If this setting is not configured, there is no maximum length and a us er can set a PIN as long as they want.''',
9322 },
9323 {
9324 'name': 'PinUnlockWeakPinsAllowed',
9325 'type': 'main',
9326 'schema': { 'type': 'boolean' },
9327 'supported_on': ['chrome_os:56-'],
pastarmovj 2016/12/08 09:02:19 nit: ditto.
sammiequon 2016/12/08 21:51:07 Done.
9328 'features': {
9329 'dynamic_refresh': True,
9330 'per_profile': False,
9331 },
9332 'example_value': False,
9333 'id': 356,
9334 'caption': '''Enables users to set weak PINs for the lock screen PIN.' '',
9335 'tags': [],
9336 'desc': '''If this setting is configured to be false, users will be pr evented from setting PINs that are considered weak. Such PINs include PINs which contain the same digit throughout, PINs whose digits are increasing by 1, PINs whose digits are decreasing by 1 and PINs which are too common.
9337
9338 If this setting is configured to be true, or not configured, users can enter these PINs and will only get a warning display.''',
9260 }, 9339 },
9261 ], 9340 ],
9262 'supported_on': ['chrome_os:56-'],
9263 'features': {
9264 'dynamic_refresh': True,
9265 'per_profile': True,
9266 },
9267 'example_value': 2,
9268 'id': 353,
9269 'caption': '''Sets how often user has to enter password to use quick unloc k.''',
9270 'tags': [],
9271 'desc': '''This setting controls how often the lock screen will request th e password to be entered in order to continue using quick unlock. Each time the lock screen is entered, if the last password entry was more than this setting, t he quick unlock will not be available on entering the lock screen. Should the us er stay on the lock screen past this period of time, a password will be requeste d next time the user enters the wrong code, or re-enters the lock screen, whiche ver comes first.
9272
9273 If this setting is configured, users using quick unlock will be requested to enter their passwords on the lock screen depending on this setting.
9274
9275 If this setting is not configured, users using quick unlock will be reques ted to enter their password on the lock screen every day.''',
9276 }, 9341 },
9277 ], 9342 ],
9278 'messages': { 9343 'messages': {
9279 # Messages that are not associated to any policies. 9344 # Messages that are not associated to any policies.
9280 'win_supported_winxpsp2': { 9345 'win_supported_winxpsp2': {
9281 'desc': '''A label specifying the oldest possible compatible version of Wi ndows. This text will appear right next to a label containing the text 'Supporte d on:'.''', 9346 'desc': '''A label specifying the oldest possible compatible version of Wi ndows. This text will appear right next to a label containing the text 'Supporte d on:'.''',
9282 'text': '''Microsoft Windows XP SP2 or later''' 9347 'text': '''Microsoft Windows XP SP2 or later'''
9283 }, 9348 },
9284 'mac_chrome_preferences': { 9349 'mac_chrome_preferences': {
9285 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chromium are being edited''', 9350 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chromium are being edited''',
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
9400 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 9465 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
9401 'text': 'Default Settings (users can override)', 9466 'text': 'Default Settings (users can override)',
9402 }, 9467 },
9403 'doc_complex_policies_on_windows': { 9468 'doc_complex_policies_on_windows': {
9404 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', 9469 'desc': '''Text pointing the user to a help article for complex policies o n Windows''',
9405 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">https://www.chromium.org/administrators/complex-policies-on-windows<e x>https://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>' '', 9470 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">https://www.chromium.org/administrators/complex-policies-on-windows<e x>https://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>' '',
9406 }, 9471 },
9407 }, 9472 },
9408 'placeholders': [], 9473 'placeholders': [],
9409 } 9474 }
OLDNEW
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698