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

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

Issue 138003003: Add additional restriction to policy schema internal (part1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more fixes Created 6 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 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 4430 matching lines...) Expand 10 before | Expand all | Expand 10 after
4441 'name': 'PowerManagement', 4441 'name': 'PowerManagement',
4442 'type': 'group', 4442 'type': 'group',
4443 'caption': '''Power mangement''', 4443 'caption': '''Power mangement''',
4444 'desc': '''Configure power manegement in <ph name="PRODUCT_OS_NAME">$2<ex> Google Chrome OS</ex></ph>. 4444 'desc': '''Configure power manegement in <ph name="PRODUCT_OS_NAME">$2<ex> Google Chrome OS</ex></ph>.
4445 4445
4446 These policies let you configure how <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> behaves when the user remains idle for some amount of tim e.''', 4446 These policies let you configure how <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> behaves when the user remains idle for some amount of tim e.''',
4447 'policies': [ 4447 'policies': [
4448 { 4448 {
4449 'name': 'ScreenDimDelayAC', 4449 'name': 'ScreenDimDelayAC',
4450 'type': 'int', 4450 'type': 'int',
4451 'schema': { 'type': 'integer' }, 4451 'schema': {
4452 'type': 'integer',
4453 'minimum': 0
4454 },
4452 'supported_on': ['chrome_os:26-'], 4455 'supported_on': ['chrome_os:26-'],
4453 'features': { 4456 'features': {
4454 'dynamic_refresh': True, 4457 'dynamic_refresh': True,
4455 'per_profile': False, 4458 'per_profile': False,
4456 }, 4459 },
4457 'example_value': 420000, 4460 'example_value': 420000,
4458 'id': 172, 4461 'id': 172,
4459 'caption': '''Screen dim delay when running on AC power''', 4462 'caption': '''Screen dim delay when running on AC power''',
4460 'desc': '''Specifies the length of time without user input after which the screen is dimmed when running on AC power. 4463 'desc': '''Specifies the length of time without user input after which the screen is dimmed when running on AC power.
4461 4464
4462 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> dims the screen. 4465 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> dims the screen.
4463 4466
4464 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not dim the screen when the user becomes idle. 4467 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not dim the screen when the user becomes idle.
4465 4468
4466 When this policy is unset, a default length of time is used. 4469 When this policy is unset, a default length of time is used.
4467 4470
4468 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the screen off delay (if set) and the idle delay.''' , 4471 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the screen off delay (if set) and the idle delay.''' ,
4469 }, 4472 },
4470 { 4473 {
4471 'name': 'ScreenOffDelayAC', 4474 'name': 'ScreenOffDelayAC',
4472 'type': 'int', 4475 'type': 'int',
4473 'schema': { 'type': 'integer' }, 4476 'schema': {
4477 'type': 'integer',
4478 'minimum': 0
4479 },
4474 'supported_on': ['chrome_os:26-'], 4480 'supported_on': ['chrome_os:26-'],
4475 'features': { 4481 'features': {
4476 'dynamic_refresh': True, 4482 'dynamic_refresh': True,
4477 'per_profile': False, 4483 'per_profile': False,
4478 }, 4484 },
4479 'example_value': 480000, 4485 'example_value': 480000,
4480 'id': 173, 4486 'id': 173,
4481 'caption': '''Screen off delay when running on AC power''', 4487 'caption': '''Screen off delay when running on AC power''',
4482 'desc': '''Specifies the length of time without user input after which the screen is turned off when running on AC power. 4488 'desc': '''Specifies the length of time without user input after which the screen is turned off when running on AC power.
4483 4489
4484 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> turns off the screen. 4490 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> turns off the screen.
4485 4491
4486 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not turn off the screen when the user becomes idle. 4492 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not turn off the screen when the user becomes idle.
4487 4493
4488 When this policy is unset, a default length of time is used. 4494 When this policy is unset, a default length of time is used.
4489 4495
4490 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''', 4496 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''',
4491 }, 4497 },
4492 { 4498 {
4493 'name': 'ScreenLockDelayAC', 4499 'name': 'ScreenLockDelayAC',
4494 'type': 'int', 4500 'type': 'int',
4495 'schema': { 'type': 'integer' }, 4501 'schema': {
4502 'type': 'integer',
4503 'minimum': 0
4504 },
4496 'supported_on': ['chrome_os:26-'], 4505 'supported_on': ['chrome_os:26-'],
4497 'features': { 4506 'features': {
4498 'dynamic_refresh': True, 4507 'dynamic_refresh': True,
4499 'per_profile': False, 4508 'per_profile': False,
4500 }, 4509 },
4501 'example_value': 600000, 4510 'example_value': 600000,
4502 'id': 174, 4511 'id': 174,
4503 'caption': '''Screen lock delay when running on AC power''', 4512 'caption': '''Screen lock delay when running on AC power''',
4504 'desc': '''Specifies the length of time without user input after which the screen is locked when running on AC power. 4513 'desc': '''Specifies the length of time without user input after which the screen is locked when running on AC power.
4505 4514
4506 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> locks the screen. 4515 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> locks the screen.
4507 4516
4508 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not lock the screen when the user becomes idle. 4517 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not lock the screen when the user becomes idle.
4509 4518
4510 When this policy is unset, a default length of time is used. 4519 When this policy is unset, a default length of time is used.
4511 4520
4512 The recommended way to lock the screen on idle is to enable screen loc king on suspend and have <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> suspend after the idle delay. This policy should only be used when screen l ocking should occur a significant amount of time sooner than suspend or when sus pend on idle is not desired at all. 4521 The recommended way to lock the screen on idle is to enable screen loc king on suspend and have <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> suspend after the idle delay. This policy should only be used when screen l ocking should occur a significant amount of time sooner than suspend or when sus pend on idle is not desired at all.
4513 4522
4514 The policy value should be specified in milliseconds. Values are clamp ed to be less than the idle delay.''', 4523 The policy value should be specified in milliseconds. Values are clamp ed to be less than the idle delay.''',
4515 }, 4524 },
4516 { 4525 {
4517 'name': 'IdleWarningDelayAC', 4526 'name': 'IdleWarningDelayAC',
4518 'type': 'int', 4527 'type': 'int',
4519 'schema': { 'type': 'integer' }, 4528 'schema': {
4529 'type': 'integer',
4530 'minimum': 0
4531 },
4520 'supported_on': ['chrome_os:27-'], 4532 'supported_on': ['chrome_os:27-'],
4521 'features': { 4533 'features': {
4522 'dynamic_refresh': True, 4534 'dynamic_refresh': True,
4523 'per_profile': False, 4535 'per_profile': False,
4524 }, 4536 },
4525 'example_value': 545000, 4537 'example_value': 545000,
4526 'id': 197, 4538 'id': 197,
4527 'caption': '''Idle warning delay when running on AC power''', 4539 'caption': '''Idle warning delay when running on AC power''',
4528 'desc': '''Specifies the length of time without user input after which a warning dialog is shown when running on AC power. 4540 'desc': '''Specifies the length of time without user input after which a warning dialog is shown when running on AC power.
4529 4541
4530 When this policy is set, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> shows a warning dialog telling the user that the idle action is about to be taken. 4542 When this policy is set, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> shows a warning dialog telling the user that the idle action is about to be taken.
4531 4543
4532 When this policy is unset, no warning dialog is shown. 4544 When this policy is unset, no warning dialog is shown.
4533 4545
4534 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''', 4546 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''',
4535 }, 4547 },
4536 { 4548 {
4537 'name': 'IdleDelayAC', 4549 'name': 'IdleDelayAC',
4538 'type': 'int', 4550 'type': 'int',
4539 'schema': { 'type': 'integer' }, 4551 'schema': {
4552 'type': 'integer',
4553 'minimum': 0
4554 },
4540 'supported_on': ['chrome_os:26-'], 4555 'supported_on': ['chrome_os:26-'],
4541 'features': { 4556 'features': {
4542 'dynamic_refresh': True, 4557 'dynamic_refresh': True,
4543 'per_profile': False, 4558 'per_profile': False,
4544 }, 4559 },
4545 'example_value': 1800000, 4560 'example_value': 1800000,
4546 'id': 175, 4561 'id': 175,
4547 'caption': '''Idle delay when running on AC power''', 4562 'caption': '''Idle delay when running on AC power''',
4548 'desc': '''Specifies the length of time without user input after which the idle action is taken when running on AC power. 4563 'desc': '''Specifies the length of time without user input after which the idle action is taken when running on AC power.
4549 4564
4550 When this policy is set, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> takes the idle action, which can be configured separately. 4565 When this policy is set, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> takes the idle action, which can be configured separately.
4551 4566
4552 When this policy is unset, a default length of time is used. 4567 When this policy is unset, a default length of time is used.
4553 4568
4554 The policy value should be specified in milliseconds.''', 4569 The policy value should be specified in milliseconds.''',
4555 }, 4570 },
4556 { 4571 {
4557 'name': 'ScreenDimDelayBattery', 4572 'name': 'ScreenDimDelayBattery',
4558 'type': 'int', 4573 'type': 'int',
4559 'schema': { 'type': 'integer' }, 4574 'schema': {
4575 'type': 'integer',
4576 'minimum': 0
4577 },
4560 'supported_on': ['chrome_os:26-'], 4578 'supported_on': ['chrome_os:26-'],
4561 'features': { 4579 'features': {
4562 'dynamic_refresh': True, 4580 'dynamic_refresh': True,
4563 'per_profile': False, 4581 'per_profile': False,
4564 }, 4582 },
4565 'example_value': 300000, 4583 'example_value': 300000,
4566 'id': 176, 4584 'id': 176,
4567 'caption': '''Screen dim delay when running on battery power''', 4585 'caption': '''Screen dim delay when running on battery power''',
4568 'desc': '''Specifies the length of time without user input after which the screen is dimmed when running on battery power. 4586 'desc': '''Specifies the length of time without user input after which the screen is dimmed when running on battery power.
4569 4587
4570 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> dims the screen. 4588 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> dims the screen.
4571 4589
4572 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not dim the screen when the user becomes idle. 4590 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not dim the screen when the user becomes idle.
4573 4591
4574 When this policy is unset, a default length of time is used. 4592 When this policy is unset, a default length of time is used.
4575 4593
4576 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the screen off delay (if set) and the idle delay.''' , 4594 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the screen off delay (if set) and the idle delay.''' ,
4577 }, 4595 },
4578 { 4596 {
4579 'name': 'ScreenOffDelayBattery', 4597 'name': 'ScreenOffDelayBattery',
4580 'type': 'int', 4598 'type': 'int',
4581 'schema': { 'type': 'integer' }, 4599 'schema': {
4600 'type': 'integer',
4601 'minimum': 0
4602 },
4582 'supported_on': ['chrome_os:26-'], 4603 'supported_on': ['chrome_os:26-'],
4583 'features': { 4604 'features': {
4584 'dynamic_refresh': True, 4605 'dynamic_refresh': True,
4585 'per_profile': False, 4606 'per_profile': False,
4586 }, 4607 },
4587 'example_value': 360000, 4608 'example_value': 360000,
4588 'id': 177, 4609 'id': 177,
4589 'caption': '''Screen off delay when running on battery power''', 4610 'caption': '''Screen off delay when running on battery power''',
4590 'desc': '''Specifies the length of time without user input after which the screen is turned off when running on battery power. 4611 'desc': '''Specifies the length of time without user input after which the screen is turned off when running on battery power.
4591 4612
4592 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> turns off the screen. 4613 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> turns off the screen.
4593 4614
4594 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not turn off the screen when the user becomes idle. 4615 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not turn off the screen when the user becomes idle.
4595 4616
4596 When this policy is unset, a default length of time is used. 4617 When this policy is unset, a default length of time is used.
4597 4618
4598 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''', 4619 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''',
4599 }, 4620 },
4600 { 4621 {
4601 'name': 'ScreenLockDelayBattery', 4622 'name': 'ScreenLockDelayBattery',
4602 'type': 'int', 4623 'type': 'int',
4603 'schema': { 'type': 'integer' }, 4624 'schema': {
4625 'type': 'integer',
4626 'minimum': 0
4627 },
4604 'supported_on': ['chrome_os:26-'], 4628 'supported_on': ['chrome_os:26-'],
4605 'features': { 4629 'features': {
4606 'dynamic_refresh': True, 4630 'dynamic_refresh': True,
4607 'per_profile': False, 4631 'per_profile': False,
4608 }, 4632 },
4609 'example_value': 600000, 4633 'example_value': 600000,
4610 'id': 178, 4634 'id': 178,
4611 'caption': '''Screen lock delay when running on battery power''', 4635 'caption': '''Screen lock delay when running on battery power''',
4612 'desc': '''Specifies the length of time without user input after which the screen is locked when running on battery power. 4636 'desc': '''Specifies the length of time without user input after which the screen is locked when running on battery power.
4613 4637
4614 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> locks the screen. 4638 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> locks the screen.
4615 4639
4616 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not lock the screen when the user becomes idle. 4640 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not lock the screen when the user becomes idle.
4617 4641
4618 When this policy is unset, a default length of time is used. 4642 When this policy is unset, a default length of time is used.
4619 4643
4620 The recommended way to lock the screen on idle is to enable screen loc king on suspend and have <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> suspend after the idle delay. This policy should only be used when screen l ocking should occur a significant amount of time sooner than suspend or when sus pend on idle is not desired at all. 4644 The recommended way to lock the screen on idle is to enable screen loc king on suspend and have <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> suspend after the idle delay. This policy should only be used when screen l ocking should occur a significant amount of time sooner than suspend or when sus pend on idle is not desired at all.
4621 4645
4622 The policy value should be specified in milliseconds. Values are clamp ed to be less than the idle delay.''', 4646 The policy value should be specified in milliseconds. Values are clamp ed to be less than the idle delay.''',
4623 }, 4647 },
4624 { 4648 {
4625 'name': 'IdleWarningDelayBattery', 4649 'name': 'IdleWarningDelayBattery',
4626 'type': 'int', 4650 'type': 'int',
4627 'schema': { 'type': 'integer' }, 4651 'schema': {
4652 'type': 'integer',
4653 'minimum': 0
4654 },
4628 'supported_on': ['chrome_os:27-'], 4655 'supported_on': ['chrome_os:27-'],
4629 'features': { 4656 'features': {
4630 'dynamic_refresh': True, 4657 'dynamic_refresh': True,
4631 'per_profile': False, 4658 'per_profile': False,
4632 }, 4659 },
4633 'example_value': 545000, 4660 'example_value': 545000,
4634 'id': 198, 4661 'id': 198,
4635 'caption': '''Idle warning delay when running on battery power''', 4662 'caption': '''Idle warning delay when running on battery power''',
4636 'desc': '''Specifies the length of time without user input after which a warning dialog is shown when running on battery power. 4663 'desc': '''Specifies the length of time without user input after which a warning dialog is shown when running on battery power.
4637 4664
4638 When this policy is set, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> shows a warning dialog telling the user that the idle action is about to be taken. 4665 When this policy is set, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> shows a warning dialog telling the user that the idle action is about to be taken.
4639 4666
4640 When this policy is unset, no warning dialog is shown. 4667 When this policy is unset, no warning dialog is shown.
4641 4668
4642 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''', 4669 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''',
4643 }, 4670 },
4644 { 4671 {
4645 'name': 'IdleDelayBattery', 4672 'name': 'IdleDelayBattery',
4646 'type': 'int', 4673 'type': 'int',
4647 'schema': { 'type': 'integer' }, 4674 'schema': {
4675 'type': 'integer',
4676 'minimum': 0
4677 },
4648 'supported_on': ['chrome_os:26-'], 4678 'supported_on': ['chrome_os:26-'],
4649 'features': { 4679 'features': {
4650 'dynamic_refresh': True, 4680 'dynamic_refresh': True,
4651 'per_profile': False, 4681 'per_profile': False,
4652 }, 4682 },
4653 'example_value': 600000, 4683 'example_value': 600000,
4654 'id': 179, 4684 'id': 179,
4655 'caption': '''Idle delay when running on battery power''', 4685 'caption': '''Idle delay when running on battery power''',
4656 'desc': '''Specifies the length of time without user input after which the idle action is taken when running on battery power. 4686 'desc': '''Specifies the length of time without user input after which the idle action is taken when running on battery power.
4657 4687
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
5886 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', 5916 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''',
5887 'text': 'deprecated', 5917 'text': 'deprecated',
5888 }, 5918 },
5889 'doc_recommended': { 5919 'doc_recommended': {
5890 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 5920 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
5891 'text': 'Default Settings (users can override)', 5921 'text': 'Default Settings (users can override)',
5892 }, 5922 },
5893 }, 5923 },
5894 'placeholders': [], 5924 'placeholders': [],
5895 } 5925 }
OLDNEW
« no previous file with comments | « components/policy/core/common/schema_unittest.cc ('k') | components/policy/tools/generate_policy_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698