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

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

Issue 964503002: Implemented ForceMaximizeBrowserWindowOnFirstRun policy, added unit test and browser test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed description Created 5 years, 9 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 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: 289 126 # For your editing convenience: highest ID currently used: 290
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 6988 matching lines...) Expand 10 before | Expand all | Expand 10 after
7125 'device_only': True, 7125 'device_only': True,
7126 'features': { 7126 'features': {
7127 'dynamic_refresh': True, 7127 'dynamic_refresh': True,
7128 }, 7128 },
7129 'example_value': True, 7129 'example_value': True,
7130 'id': 284, 7130 'id': 284,
7131 'caption': '''Automatic reboot on device shutdown''', 7131 'caption': '''Automatic reboot on device shutdown''',
7132 '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. 7132 '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.
7133 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.''', 7133 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.''',
7134 }, 7134 },
7135 {
7136 'name': 'ForceMaximizeBrowserWindowOnFirstRun',
bartfab (slow) 2015/03/12 11:54:48 Nit: How about s/BrowserWindow//? It seems unneces
peletskyi 2015/03/18 13:28:13 Done.
7137 'type': 'main',
7138 'schema': { 'type': 'boolean' },
7139 'supported_on': ['chrome_os:41-'],
bartfab (slow) 2015/03/12 11:54:48 Nit: s/41/43/
peletskyi 2015/03/18 13:28:13 Done.
7140 'features': {
7141 'dynamic_refresh': False,
7142 'per_profile': True,
7143 },
7144 'example_value': True,
7145 'id': 290,
7146 'caption': '''Maximize browser window on the first run''',
bartfab (slow) 2015/03/12 11:54:48 Nit 1: s/browser/the first browser/ Nit 2: s/the /
peletskyi 2015/03/18 13:28:13 Done.
7147 'desc': '''If this policy is set to true <ph name="PRODUCT_NAME">$1<ex>Goo gle Chrome</ex></ph> will be launched in maximized mode on the first run or on e ach login in case of public sessions.
bartfab (slow) 2015/03/12 11:54:48 Nit 1: s/true/true,/ Nit 2: s/be launched in maxim
peletskyi 2015/03/18 13:28:13 Done.
7148 If this policy is set to false or not configured <ph name="PRODUCT_NAME">$ 1<ex>Google Chrome</ex></ph> will be opened in default mode (maximized in case i f screen width less than 1366 in case of first run or as in previous run).''',
bartfab (slow) 2015/03/12 11:54:48 Nit 1: s/configured/configured,/ Nit 2: I think yo
peletskyi 2015/03/18 13:28:13 Done.
7149 },
7135 ], 7150 ],
7136 'messages': { 7151 'messages': {
7137 # Messages that are not associated to any policies. 7152 # Messages that are not associated to any policies.
7138 'win_supported_winxpsp2': { 7153 'win_supported_winxpsp2': {
7139 '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:'.''', 7154 '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:'.''',
7140 'text': '''Microsoft Windows XP SP2 or later''' 7155 'text': '''Microsoft Windows XP SP2 or later'''
7141 }, 7156 },
7142 'mac_chrome_preferences': { 7157 'mac_chrome_preferences': {
7143 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chromium are being edited''', 7158 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chromium are being edited''',
7144 'text': '''<ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> preferenc es''' 7159 '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
7249 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 7264 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
7250 'text': 'Default Settings (users can override)', 7265 'text': 'Default Settings (users can override)',
7251 }, 7266 },
7252 'doc_complex_policies_on_windows': { 7267 'doc_complex_policies_on_windows': {
7253 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', 7268 'desc': '''Text pointing the user to a help article for complex policies o n Windows''',
7254 '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>''' , 7269 '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>''' ,
7255 }, 7270 },
7256 }, 7271 },
7257 'placeholders': [], 7272 'placeholders': [],
7258 } 7273 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698