OLD | NEW |
---|---|
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 |
11 # pair where the value has a given type. Chrome looks up the values using the | 11 # pair where the value has a given type. Chrome looks up the values using the |
12 # names of the policies. In the user interface where the values can be set, | 12 # names of the policies. In the user interface where the values can be set, |
13 # related policies might appear together in policy groups. The grouping is not | 13 # related policies might appear together in policy groups. The grouping is not |
14 # visible to Chrome. | 14 # visible to Chrome. |
15 # | 15 # |
16 # This file contains a list of policies and groups. Each group contains a list | 16 # This file contains a list of policies and groups. Each group contains a list |
17 # of policies under the key 'policies'. All the policies and groups must have | 17 # of policies under the key 'policies'. All the policies and groups must have |
18 # unique names. Group names are not exposed to Chrome at all. | 18 # unique names. Group names are not exposed to Chrome at all. |
19 # | 19 # |
20 # Each policy has a type. The currently implemented types: | 20 # Each policy has a type. The currently implemented types: |
21 # 'group': - not a real policy, contains a list of policies | 21 # 'group': - not a real policy, contains a list of policies |
22 # NOTE: Currently nesting groups inside other groups is not supported. | 22 # NOTE: Currently nesting groups inside other groups is not supported. |
23 # 'string' - a string value | 23 # 'string' - a string value |
24 # 'enum' - the user can select its value from a collection of items | 24 # 'int-enum' - the user can select an integer value from a collection of |
25 # items | |
26 # 'string-enum' - the user can select a string value from a collection of | |
27 # items | |
25 # 'main' - a boolean value | 28 # 'main' - a boolean value |
26 # 'list' - a list of string values | 29 # 'list' - a list of string values |
27 # | 30 # |
28 # Policy group descriptions, policy captions and similar texts are localized | 31 # Policy group descriptions, policy captions and similar texts are localized |
29 # strings taken from the <message> nodes of the .grd file. Their name | 32 # strings taken from the <message> nodes of the .grd file. Their name |
30 # attributes are generated from the JSON keys. | 33 # attributes are generated from the JSON keys. |
31 # Each item (policy or group) may have the following messages: | 34 # Each item (policy or group) may have the following messages: |
32 # - description: | 35 # - description: |
33 # Describes the item it applies to. | 36 # Describes the item it applies to. |
34 # - caption | 37 # - caption |
(...skipping 30 matching lines...) Expand all Loading... | |
65 # supported under the key 'supported_on'. Each item of this list has the | 68 # supported under the key 'supported_on'. Each item of this list has the |
66 # form of 'product:since_version-until_version', which means that support | 69 # form of 'product:since_version-until_version', which means that support |
67 # for the policy in 'product' was introduced in 'since_version' and removed | 70 # for the policy in 'product' was introduced in 'since_version' and removed |
68 # after 'until_version'. Product names may contain a suffix specifying a | 71 # after 'until_version'. Product names may contain a suffix specifying a |
69 # platform name, e.g.: 'chrome.win' is read as 'Chrome on Windows'. Version | 72 # platform name, e.g.: 'chrome.win' is read as 'Chrome on Windows'. Version |
70 # numbers can be any string that does not contain ':' or '-' characters. | 73 # numbers can be any string that does not contain ':' or '-' characters. |
71 # | 74 # |
72 # Currently supported product names: | 75 # Currently supported product names: |
73 # 'chrome_frame', 'chrome_os' | 76 # 'chrome_frame', 'chrome_os' |
74 # 'chrome.win', 'chrome.linux', 'chrome.mac', 'chrome.*' | 77 # 'chrome.win', 'chrome.linux', 'chrome.mac', 'chrome.*' |
75 # For example if 'chrome.*:5-10' is specified for a policy, then it should | 78 # For example if 'chrome.*:5-10' is specified for a policy, then it should |
76 # be read as: | 79 # be read as: |
77 # 'chrome.linux:5-10,chrome.mac:5-10,chrome.win:5-10' | 80 # 'chrome.linux:5-10,chrome.mac:5-10,chrome.win:5-10' |
78 # The product name also affects in which templates will the policy be included . | 81 # The product name also affects in which templates will the policy be included . |
79 # chrome.*, chrome.win, chrome_frame -> ADM,ADMX,ADML,doc | 82 # chrome.*, chrome.win, chrome_frame -> ADM,ADMX,ADML,doc |
80 # chrome.*, chrome.linux -> JSON,doc | 83 # chrome.*, chrome.linux -> JSON,doc |
81 # chrome.*, chrome.mac -> plist, plist_strings,doc | 84 # chrome.*, chrome.mac -> plist, plist_strings,doc |
82 # everything else -> doc | 85 # everything else -> doc |
83 # | 86 # |
84 'policy_definitions': [ | 87 'policy_definitions': [ |
85 { | 88 { |
86 'name': 'Homepage', | 89 'name': 'Homepage', |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
187 'example_value': True, | 190 'example_value': True, |
188 } | 191 } |
189 }, | 192 }, |
190 { | 193 { |
191 'name': 'MetricsReportingEnabled', | 194 'name': 'MetricsReportingEnabled', |
192 'type': 'main', | 195 'type': 'main', |
193 'supported_on': ['chrome.*:8-'], | 196 'supported_on': ['chrome.*:8-'], |
194 'annotations': { | 197 'annotations': { |
195 'features': {'dynamic_refresh': 0}, | 198 'features': {'dynamic_refresh': 0}, |
196 'example_value': True, | 199 'example_value': True, |
197 'problem_href': | |
198 'http://www.chromium.org/administrators/' | |
199 'policy-list-3/metrics-reporting-enabled', | |
200 } | 200 } |
201 }, | 201 }, |
202 { | 202 { |
203 'name': 'PasswordManager', | 203 'name': 'PasswordManager', |
204 'type': 'group', | 204 'type': 'group', |
205 'policies': [{ | 205 'policies': [{ |
206 'name': 'PasswordManagerEnabled', | 206 'name': 'PasswordManagerEnabled', |
207 'type': 'main', | 207 'type': 'main', |
208 'supported_on': ['chrome.*:8-'], | 208 'supported_on': ['chrome.*:8-'], |
209 'annotations': { | 209 'annotations': { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
246 'annotations': { | 246 'annotations': { |
247 'features': {'dynamic_refresh': 1}, | 247 'features': {'dynamic_refresh': 1}, |
248 'example_value': True, | 248 'example_value': True, |
249 } | 249 } |
250 }, | 250 }, |
251 { | 251 { |
252 'name': 'Proxy', | 252 'name': 'Proxy', |
253 'type': 'group', | 253 'type': 'group', |
254 'policies': [ | 254 'policies': [ |
255 { | 255 { |
256 'name': 'ProxyMode', | |
257 'type': 'string-enum', | |
258 'items': [ | |
259 {'name': 'ProxyDisabled', 'value': 'direct'}, | |
260 {'name': 'ProxyAutoDetect', 'value': 'auto_detect'}, | |
261 {'name': 'ProxyPacScript', 'value': 'pac_script'}, | |
262 {'name': 'ProxyFixedServers', 'value': 'fixed_servers'}, | |
263 {'name': 'ProxyUseSystem', 'value': 'system'}, | |
264 ], | |
265 'supported_on': ['chrome.*:10-'], | |
266 'annotations': { | |
267 'features': {'dynamic_refresh': 1}, | |
268 'example_value': 'direct' | |
269 } | |
270 }, | |
271 { | |
256 'name': 'ProxyServerMode', | 272 'name': 'ProxyServerMode', |
257 'type': 'enum', | 273 'type': 'int-enum', |
258 'items': [ | 274 'items': [ |
259 {'name': 'ProxyServerDisabled', 'value': '0'}, | 275 {'name': 'ProxyServerDisabled', 'value': 0}, |
260 {'name': 'ProxyServerAutoDetect', 'value': '1'}, | 276 {'name': 'ProxyServerAutoDetect', 'value': 1}, |
261 {'name': 'ProxyServerManual', 'value': '2'}, | 277 {'name': 'ProxyServerManual', 'value': 2}, |
262 {'name': 'ProxyServerUseSystem', 'value': '3'}, | 278 {'name': 'ProxyServerUseSystem', 'value': 3}, |
263 ], | 279 ], |
264 'supported_on': ['chrome.*:8-'], | 280 'supported_on': ['chrome.*:8-'], |
281 'deprecated' : True, | |
battre
2011/01/03 13:19:16
should we add more details:
- since when is it dep
danno
2011/01/07 12:24:25
I would argue that we can add more complexity to t
| |
265 'annotations': { | 282 'annotations': { |
266 'features': {'dynamic_refresh': 1}, | 283 'features': {'dynamic_refresh': 1}, |
267 'example_value': 2, | 284 'example_value': 2, |
268 } | 285 } |
269 }, | 286 }, |
270 { | 287 { |
271 'name': 'ProxyServer', | 288 'name': 'ProxyServer', |
272 'type': 'string', | 289 'type': 'string', |
273 'supported_on': ['chrome.*:8-'], | 290 'supported_on': ['chrome.*:8-'], |
274 'annotations': { | 291 'annotations': { |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
408 'annotations': { | 425 'annotations': { |
409 'features': {'dynamic_refresh': 1}, | 426 'features': {'dynamic_refresh': 1}, |
410 'example_value': False, | 427 'example_value': False, |
411 } | 428 } |
412 }, | 429 }, |
413 { | 430 { |
414 'name': 'RestoreOnStartupGroup', | 431 'name': 'RestoreOnStartupGroup', |
415 'type': 'group', | 432 'type': 'group', |
416 'policies': [{ | 433 'policies': [{ |
417 'name': 'RestoreOnStartup', | 434 'name': 'RestoreOnStartup', |
418 'type': 'enum', | 435 'type': 'int-enum', |
419 'items': [ | 436 'items': [ |
420 {'name': 'RestoreOnStartupIsNone', 'value': '0'}, | 437 {'name': 'RestoreOnStartupIsNone', 'value': 0}, |
421 {'name': 'RestoreOnStartupIsLastSession', 'value': '1'}, | 438 {'name': 'RestoreOnStartupIsLastSession', 'value': 1}, |
422 {'name': 'RestoreOnStartupIsURLs', 'value': '4'}, | 439 {'name': 'RestoreOnStartupIsURLs', 'value': 4}, |
423 ], | 440 ], |
424 'supported_on': ['chrome.*:8-'], | 441 'supported_on': ['chrome.*:8-'], |
425 'annotations': { | 442 'annotations': { |
426 'features': {'dynamic_refresh': 1}, | 443 'features': {'dynamic_refresh': 1}, |
427 'example_value': 4, | 444 'example_value': 4, |
428 } | 445 } |
429 },{ | 446 },{ |
430 'name': 'RestoreOnStartupURLs', | 447 'name': 'RestoreOnStartupURLs', |
431 'type': 'list', | 448 'type': 'list', |
432 'supported_on': ['chrome.*:8-'], | 449 'supported_on': ['chrome.*:8-'], |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
504 } | 521 } |
505 }, | 522 }, |
506 ] | 523 ] |
507 }, | 524 }, |
508 { | 525 { |
509 'name': 'ContentSettings', | 526 'name': 'ContentSettings', |
510 'type': 'group', | 527 'type': 'group', |
511 'policies': [ | 528 'policies': [ |
512 { | 529 { |
513 'name': 'DefaultCookiesSetting', | 530 'name': 'DefaultCookiesSetting', |
514 'type': 'enum', | 531 'type': 'int-enum', |
515 'items': [ | 532 'items': [ |
516 {'name': 'AllowCookies', 'value': '0'}, | 533 {'name': 'AllowCookies', 'value': 0}, |
517 {'name': 'BlockCookies', 'value': '1'}, | 534 {'name': 'BlockCookies', 'value': 1}, |
518 ], | 535 ], |
519 'supported_on': ['chrome.*:10-'], | 536 'supported_on': ['chrome.*:10-'], |
520 'annotations': { | 537 'annotations': { |
521 'features': {'dynamic_refresh': 1}, | 538 'features': {'dynamic_refresh': 1}, |
522 'example_value': 0, | 539 'example_value': 0, |
523 } | 540 } |
524 }, | 541 }, |
525 { | 542 { |
526 'name': 'DefaultImagesSetting', | 543 'name': 'DefaultImagesSetting', |
527 'type': 'enum', | 544 'type': 'int-enum', |
528 'items': [ | 545 'items': [ |
529 {'name': 'AllowImages', 'value': '0'}, | 546 {'name': 'AllowImages', 'value': 0}, |
530 {'name': 'BlockImages', 'value': '1'}, | 547 {'name': 'BlockImages', 'value': 1}, |
531 ], | 548 ], |
532 'supported_on': ['chrome.*:10-'], | 549 'supported_on': ['chrome.*:10-'], |
533 'annotations': { | 550 'annotations': { |
534 'features': {'dynamic_refresh': 1}, | 551 'features': {'dynamic_refresh': 1}, |
535 'example_value': 0, | 552 'example_value': 0, |
536 } | 553 } |
537 }, | 554 }, |
538 { | 555 { |
539 'name': 'DefaultJavaScriptSetting', | 556 'name': 'DefaultJavaScriptSetting', |
540 'type': 'enum', | 557 'type': 'int-enum', |
541 'items': [ | 558 'items': [ |
542 {'name': 'AllowJavaScript', 'value': '0'}, | 559 {'name': 'AllowJavaScript', 'value': 0}, |
543 {'name': 'BlockJavaScript', 'value': '1'}, | 560 {'name': 'BlockJavaScript', 'value': 1}, |
544 ], | 561 ], |
545 'supported_on': ['chrome.*:10-'], | 562 'supported_on': ['chrome.*:10-'], |
546 'annotations': { | 563 'annotations': { |
547 'features': {'dynamic_refresh': 1}, | 564 'features': {'dynamic_refresh': 1}, |
548 'example_value': 0, | 565 'example_value': 0, |
549 } | 566 } |
550 }, | 567 }, |
551 { | 568 { |
552 'name': 'DefaultPluginsSetting', | 569 'name': 'DefaultPluginsSetting', |
553 'type': 'enum', | 570 'type': 'int-enum', |
554 'items': [ | 571 'items': [ |
555 {'name': 'AllowPlugins', 'value': '0'}, | 572 {'name': 'AllowPlugins', 'value': 0}, |
556 {'name': 'BlockPlugins', 'value': '1'}, | 573 {'name': 'BlockPlugins', 'value': 1}, |
557 ], | 574 ], |
558 'supported_on': ['chrome.*:10-'], | 575 'supported_on': ['chrome.*:10-'], |
559 'annotations': { | 576 'annotations': { |
560 'features': {'dynamic_refresh': 1}, | 577 'features': {'dynamic_refresh': 1}, |
561 'example_value': 0, | 578 'example_value': 0, |
562 } | 579 } |
563 }, | 580 }, |
564 { | 581 { |
565 'name': 'DefaultPopupsSetting', | 582 'name': 'DefaultPopupsSetting', |
566 'type': 'enum', | 583 'type': 'int-enum', |
567 'items': [ | 584 'items': [ |
568 {'name': 'AllowPopups', 'value': '0'}, | 585 {'name': 'AllowPopups', 'value': 0}, |
569 {'name': 'BlockPopups', 'value': '1'}, | 586 {'name': 'BlockPopups', 'value': 1}, |
570 ], | 587 ], |
571 'supported_on': ['chrome.*:10-'], | 588 'supported_on': ['chrome.*:10-'], |
572 'annotations': { | 589 'annotations': { |
573 'features': {'dynamic_refresh': 1}, | 590 'features': {'dynamic_refresh': 1}, |
574 'example_value': 1, | 591 'example_value': 1, |
575 } | 592 } |
576 }, | 593 }, |
577 { | 594 { |
578 'name': 'DefaultNotificationSetting', | 595 'name': 'DefaultNotificationSetting', |
579 'type': 'enum', | 596 'type': 'int-enum', |
580 'items': [ | 597 'items': [ |
581 {'name': 'AllowNotifications', 'value': '0'}, | 598 {'name': 'AllowNotifications', 'value': 0}, |
582 {'name': 'BlockNotifications', 'value': '1'}, | 599 {'name': 'BlockNotifications', 'value': 1}, |
583 {'name': 'AskNotifications', 'value': '2'}, | 600 {'name': 'AskNotifications', 'value': 2}, |
584 ], | 601 ], |
585 'supported_on': ['chrome.*:10-'], | 602 'supported_on': ['chrome.*:10-'], |
586 'annotations': { | 603 'annotations': { |
587 'features': {'dynamic_refresh': 1}, | 604 'features': {'dynamic_refresh': 1}, |
588 'example_value': 2, | 605 'example_value': 2, |
589 } | 606 } |
590 }, | 607 }, |
591 { | 608 { |
592 'name': 'DefaultGeolocationSetting', | 609 'name': 'DefaultGeolocationSetting', |
593 'type': 'enum', | 610 'type': 'int-enum', |
594 'items': [ | 611 'items': [ |
595 {'name': 'AllowGeolocation', 'value': '0'}, | 612 {'name': 'AllowGeolocation', 'value': 0}, |
596 {'name': 'BlockGeolocation', 'value': '1'}, | 613 {'name': 'BlockGeolocation', 'value': 1}, |
597 {'name': 'AskGeolocation', 'value': '2'}, | 614 {'name': 'AskGeolocation', 'value': 2}, |
598 ], | 615 ], |
599 'supported_on': ['chrome.*:10-'], | 616 'supported_on': ['chrome.*:10-'], |
600 'annotations': { | 617 'annotations': { |
601 'features': {'dynamic_refresh': 1}, | 618 'features': {'dynamic_refresh': 1}, |
602 'example_value': 0, | 619 'example_value': 0, |
603 } | 620 } |
604 }, | 621 }, |
605 ] | 622 ] |
606 }, | 623 }, |
607 { | 624 { |
608 'name': 'Disable3DAPIs', | 625 'name': 'Disable3DAPIs', |
609 'type': 'main', | 626 'type': 'main', |
610 'supported_on': ['chrome.*:9-'], | 627 'supported_on': ['chrome.*:9-'], |
611 'annotations': { | 628 'annotations': { |
612 # It'll be difficult to support dynamically disabling access to these AP Is. | 629 # It'll be difficult to support dynamically disabling access to these AP Is. |
613 'features': {'dynamic_refresh': 0}, | 630 'features': {'dynamic_refresh': 0}, |
614 'example_value': False, | 631 'example_value': False, |
615 } | 632 } |
616 }, | 633 }, |
617 { | 634 { |
618 'name': 'ChromeFrameRendererSettings', | 635 'name': 'ChromeFrameRendererSettings', |
619 'type': 'group', | 636 'type': 'group', |
620 'policies': [{ | 637 'policies': [{ |
621 'name': 'ChromeFrameRendererSettings', | 638 'name': 'ChromeFrameRendererSettings', |
622 'type': 'enum', | 639 'type': 'int-enum', |
623 'items': [ | 640 'items': [ |
624 {'name': 'RenderInHost', 'value': '0'}, | 641 {'name': 'RenderInHost', 'value': 0}, |
625 {'name': 'RenderInChromeFrame', 'value': '1'}, | 642 {'name': 'RenderInChromeFrame', 'value': 1}, |
626 ], | 643 ], |
627 'supported_on': ['chrome_frame:8-'], | 644 'supported_on': ['chrome_frame:8-'], |
628 'annotations': { | 645 'annotations': { |
629 'features': {'dynamic_refresh': 0}, | 646 'features': {'dynamic_refresh': 0}, |
630 'example_value': 1, | 647 'example_value': 1, |
631 } | 648 } |
632 }, { | 649 }, { |
633 'name': 'RenderInChromeFrameList', | 650 'name': 'RenderInChromeFrameList', |
634 'type': 'list', | 651 'type': 'list', |
635 'supported_on': ['chrome_frame:8-'], | 652 'supported_on': ['chrome_frame:8-'], |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
680 { | 697 { |
681 'key': '$4', | 698 'key': '$4', |
682 'value': 'http://www.chromium.org/developers/how-tos/chrome-frame-getting- started' | 699 'value': 'http://www.chromium.org/developers/how-tos/chrome-frame-getting- started' |
683 }, | 700 }, |
684 { | 701 { |
685 'key': '$5', | 702 'key': '$5', |
686 'value': 'http://www.chromium.org/administrators/policy-templates' | 703 'value': 'http://www.chromium.org/administrators/policy-templates' |
687 }, | 704 }, |
688 ] | 705 ] |
689 } | 706 } |
OLD | NEW |