Chromium Code Reviews| 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 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 # policy configuration files. 'dynamic_refresh' controls if the generated | 93 # policy configuration files. 'dynamic_refresh' controls if the generated |
| 94 # documentation should state that the policy supports dynamic refresh or not. | 94 # documentation should state that the policy supports dynamic refresh or not. |
| 95 # Supporting dynamic refresh means that Chrome respects the changes to the | 95 # Supporting dynamic refresh means that Chrome respects the changes to the |
| 96 # policy immediately, without the need for restart. | 96 # policy immediately, without the need for restart. |
| 97 # | 97 # |
| 98 # IDs: | 98 # IDs: |
| 99 # Since a Protocol Buffer definition is generated from this file, unique and | 99 # Since a Protocol Buffer definition is generated from this file, unique and |
| 100 # persistent IDs for all fields (but not for groups!) are needed. These are | 100 # persistent IDs for all fields (but not for groups!) are needed. These are |
| 101 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, | 101 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, |
| 102 # because doing so would break the deployed wire format! | 102 # because doing so would break the deployed wire format! |
| 103 # For your editing convenience: highest ID currently used: 109 | 103 # For your editing convenience: highest ID currently used: 111 |
| 104 # | 104 # |
| 105 # Placeholders: | 105 # Placeholders: |
| 106 # The following placeholder strings are automatically substituted: | 106 # The following placeholder strings are automatically substituted: |
| 107 # $1 -> Google Chrome / Chromium | 107 # $1 -> Google Chrome / Chromium |
| 108 # $2 -> Google Chrome OS / Chromium OS | 108 # $2 -> Google Chrome OS / Chromium OS |
| 109 # $3 -> Google Chrome Frame / Chromium Frame | 109 # $3 -> Google Chrome Frame / Chromium Frame |
| 110 # $6 is reserved for doc_writer | 110 # $6 is reserved for doc_writer |
| 111 # | 111 # |
| 112 # Device Policy: | 112 # Device Policy: |
| 113 # An additional flag device_only (optional, defaults to False) indicates | 113 # An additional flag device_only (optional, defaults to False) indicates |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 586 'features': {'dynamic_refresh': 0}, | 586 'features': {'dynamic_refresh': 0}, |
| 587 'example_value': '${user_home}/Chrome_cache', | 587 'example_value': '${user_home}/Chrome_cache', |
| 588 'id': 88, | 588 'id': 88, |
| 589 'caption': '''Set disk cache directory''', | 589 'caption': '''Set disk cache directory''', |
| 590 'desc': '''Configures the directory that <ph name="PRODUCT_NAME">$1<ex>Goo gle Chrome</ex></ph> will use for storing cached files on the disk. | 590 'desc': '''Configures the directory that <ph name="PRODUCT_NAME">$1<ex>Goo gle Chrome</ex></ph> will use for storing cached files on the disk. |
| 591 | 591 |
| 592 If you set this policy, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ ph> will use the provided directory regardless whether the user has specified th e '--disk-cache-dir' flag or not.''', | 592 If you set this policy, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ ph> will use the provided directory regardless whether the user has specified th e '--disk-cache-dir' flag or not.''', |
| 593 'label': '''Set disk cache directory''', | 593 'label': '''Set disk cache directory''', |
| 594 }, | 594 }, |
| 595 { | 595 { |
| 596 'name': 'DiskCacheSize', | |
| 597 'type': 'int', | |
| 598 'supported_on': ['chrome.*:17-'], | |
|
Joao da Silva
2011/11/15 14:12:53
These policies can be supported on chrome_os too w
| |
| 599 'features': {'dynamic_refresh': 0}, | |
| 600 'example_value': 100, | |
| 601 'id': 110, | |
| 602 'caption': '''Set disk cache size in megabytes''', | |
| 603 'desc': '''Configures the cache size that <ph name="PRODUCT_NAME">$1<ex>Go ogle Chrome</ex></ph> will use for storing cached files on the disk. | |
| 604 | |
| 605 If you set this policy, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ ph> will use the provided cache size regardless whether the user has specified t he '--disk-cache-size' flag or not. | |
| 606 | |
| 607 If the value of this policy is 0, the default cache size will be used but the user will not be able to change it. | |
| 608 | |
| 609 If this policy is not set the default size will be used and the user will be able to override it with the --disk-cache-size flag.''', | |
| 610 'label': '''Set disk cache size''', | |
| 611 }, | |
| 612 { | |
| 613 'name': 'MediaCacheSize', | |
| 614 'type': 'int', | |
| 615 'supported_on': ['chrome.*:17-'], | |
| 616 'features': {'dynamic_refresh': 0}, | |
| 617 'example_value': 250, | |
| 618 'id': 111, | |
| 619 'caption': '''Set media disk cache size''', | |
| 620 'desc': '''Configures the chache size that <ph name="PRODUCT_NAME">$1<ex>G oogle Chrome</ex></ph> will use for storing cached media files on the disk. | |
| 621 | |
| 622 If you set this policy, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ ph> will use the provided directory regardless whether the user has specified th e '--media-cache-dir' flag or not. | |
|
Joao da Silva
2011/11/15 14:12:53
"will use the provided _directory_"? "--media-cach
| |
| 623 | |
| 624 If the value of this policy is 0, the default cache size will be used but the user will not be able to change it. | |
| 625 | |
| 626 If this policy is not set the default size will be used and the user will be able to override it with the --media-cache-size flag.''', | |
| 627 'label': '''Set media disk cache size''', | |
|
Joao da Silva
2011/11/15 14:12:53
Nit: the label defaults to the caption value, so i
| |
| 628 }, | |
| 629 { | |
| 596 'name': 'DownloadDirectory', | 630 'name': 'DownloadDirectory', |
| 597 'type': 'string', | 631 'type': 'string', |
| 598 'supported_on': ['chrome.*:11-'], | 632 'supported_on': ['chrome.*:11-'], |
| 599 'features': {'dynamic_refresh': 1}, | 633 'features': {'dynamic_refresh': 1}, |
| 600 'example_value': '/home/${user_name}/Downloads', | 634 'example_value': '/home/${user_name}/Downloads', |
| 601 'id': 64, | 635 'id': 64, |
| 602 'caption': '''Set download directory''', | 636 'caption': '''Set download directory''', |
| 603 'desc': '''Configures the directory that <ph name="PRODUCT_NAME">$1<ex>Goo gle Chrome</ex></ph> will use for downloading files. | 637 'desc': '''Configures the directory that <ph name="PRODUCT_NAME">$1<ex>Goo gle Chrome</ex></ph> will use for downloading files. |
| 604 | 638 |
| 605 If you set this policy, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ ph> will use the provided directory regardless whether the user has specified on e or enabled the flag to be prompted for download location every time.''', | 639 If you set this policy, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ ph> will use the provided directory regardless whether the user has specified on e or enabled the flag to be prompted for download location every time.''', |
| (...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1950 'desc': '''The name of the feature that indicates for a given policy that changes to it are respected by Chrome without a browser restart''', | 1984 'desc': '''The name of the feature that indicates for a given policy that changes to it are respected by Chrome without a browser restart''', |
| 1951 'text': '''Dynamic Policy Refresh''' | 1985 'text': '''Dynamic Policy Refresh''' |
| 1952 }, | 1986 }, |
| 1953 'doc_deprecated': { | 1987 'doc_deprecated': { |
| 1954 'desc': '''Text appended in parentheses to the policy name to indicate t h at it has been deprecated''', | 1988 'desc': '''Text appended in parentheses to the policy name to indicate t h at it has been deprecated''', |
| 1955 'text': 'deprecated', | 1989 'text': 'deprecated', |
| 1956 } | 1990 } |
| 1957 }, | 1991 }, |
| 1958 'placeholders': [], | 1992 'placeholders': [], |
| 1959 } | 1993 } |
| OLD | NEW |