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

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

Issue 776093004: Add device policy to disallow shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
« no previous file with comments | « chromeos/settings/cros_settings_names.cc ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 # templates and documentation. The policy definition list that Chrome sees 116 # templates and documentation. The policy definition list that Chrome sees
117 # will include policies marked with 'future'. If a WIP policy isn't meant to 117 # will include policies marked with 'future'. If a WIP policy isn't meant to
118 # be seen by the policy providers either, the 'supported_on' key should be set 118 # be seen by the policy providers either, the 'supported_on' key should be set
119 # to an empty list. 119 # to an empty list.
120 # 120 #
121 # IDs: 121 # IDs:
122 # Since a Protocol Buffer definition is generated from this file, unique and 122 # Since a Protocol Buffer definition is generated from this file, unique and
123 # persistent IDs for all fields (but not for groups!) are needed. These are 123 # persistent IDs for all fields (but not for groups!) are needed. These are
124 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, 124 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
125 # because doing so would break the deployed wire format! 125 # because doing so would break the deployed wire format!
126 # For your editing convenience: highest ID currently used: 283 126 # For your editing convenience: highest ID currently used: 284
127 # 127 #
128 # Placeholders: 128 # Placeholders:
129 # The following placeholder strings are automatically substituted: 129 # The following placeholder strings are automatically substituted:
130 # $1 -> Google Chrome / Chromium 130 # $1 -> Google Chrome / Chromium
131 # $2 -> Google Chrome OS / Chromium OS 131 # $2 -> Google Chrome OS / Chromium OS
132 # $3 -> Google Chrome Frame / Chromium Frame 132 # $3 -> Google Chrome Frame / Chromium Frame
133 # $6 is reserved for doc_writer 133 # $6 is reserved for doc_writer
134 # 134 #
135 # Device Policy: 135 # Device Policy:
136 # An additional flag device_only (optional, defaults to False) indicates 136 # An additional flag device_only (optional, defaults to False) indicates
(...skipping 6885 matching lines...) Expand 10 before | Expand all | Expand 10 after
7022 'id': 281, 7022 'id': 281,
7023 'caption': '''Enable Touch to Search''', 7023 'caption': '''Enable Touch to Search''',
7024 'desc': '''Enables the availability of Touch to Search in <ph name="PRODUC T_NAME">$1<ex>Google Chrome</ex></ph>'s content view. 7024 'desc': '''Enables the availability of Touch to Search in <ph name="PRODUC T_NAME">$1<ex>Google Chrome</ex></ph>'s content view.
7025 7025
7026 If you enable this setting, Touch to Search will be available to the user and they can choose to turn the feature on or off. 7026 If you enable this setting, Touch to Search will be available to the user and they can choose to turn the feature on or off.
7027 7027
7028 If you disable this setting, Touch to Search will be disabled completely. 7028 If you disable this setting, Touch to Search will be disabled completely.
7029 7029
7030 If this policy is left not set, it is equivalent to being enabled, see des cription above.''', 7030 If this policy is left not set, it is equivalent to being enabled, see des cription above.''',
7031 }, 7031 },
7032 {
7033 'name': 'DeviceRebootOnShutdown',
7034 'type': 'main',
7035 'schema': { 'type': 'boolean' },
7036 'supported_on': ['chrome_os:41-'],
7037 'device_only': True,
7038 'features': {
7039 'dynamic_refresh': True,
7040 },
7041 'example_value': True,
7042 'id': 284,
7043 'caption': '''Automatic reboot on device shutdown''',
7044 'desc': '''If this policy is set to false or not configured, <ph name="PRO DUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> will allow the user to shut down the device.
7045 If this policy is set to true, <ph name="PRODUCT_OS_NAME">$2<ex>Google Chr ome OS</ex></ph> will trigger a reboot when the user shuts down the device. <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> replaces all occurrences of shutdown buttons in the UI by reboot buttons. If the user shuts down the dev ice using the power button, it will not automatically reboot, even if the policy is enabled.''',
7046 },
7032 ], 7047 ],
7033 'messages': { 7048 'messages': {
7034 # Messages that are not associated to any policies. 7049 # Messages that are not associated to any policies.
7035 'win_supported_winxpsp2': { 7050 'win_supported_winxpsp2': {
7036 '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:'.''', 7051 '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:'.''',
7037 'text': '''Microsoft Windows XP SP2 or later''' 7052 'text': '''Microsoft Windows XP SP2 or later'''
7038 }, 7053 },
7039 'mac_chrome_preferences': { 7054 'mac_chrome_preferences': {
7040 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chromium are being edited''', 7055 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chromium are being edited''',
7041 'text': '''<ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> preferenc es''' 7056 'text': '''<ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> preferenc es'''
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
7146 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 7161 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
7147 'text': 'Default Settings (users can override)', 7162 'text': 'Default Settings (users can override)',
7148 }, 7163 },
7149 'doc_complex_policies_on_windows': { 7164 'doc_complex_policies_on_windows': {
7150 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', 7165 'desc': '''Text pointing the user to a help article for complex policies o n Windows''',
7151 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">http://www.chromium.org/administrators/complex-policies-on-windows<ex >http://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>''' , 7166 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">http://www.chromium.org/administrators/complex-policies-on-windows<ex >http://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>''' ,
7152 }, 7167 },
7153 }, 7168 },
7154 'placeholders': [], 7169 'placeholders': [],
7155 } 7170 }
OLDNEW
« no previous file with comments | « chromeos/settings/cros_settings_names.cc ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698