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

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

Issue 1714473002: Add usb_detachable_whitelist to device policy proto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update the policy_templates.json file and the policy decoder code Created 4 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 8160 matching lines...) Expand 10 before | Expand all | Expand 10 after
8171 after the policy value has changed. Users may change the display 8171 after the policy value has changed. Users may change the display
8172 rotation via the settings page after logging in, but their 8172 rotation via the settings page after logging in, but their
8173 setting will be overridden by the policy value at the next reboot. 8173 setting will be overridden by the policy value at the next reboot.
8174 8174
8175 This policy applies to both the primary and all secondary displays. 8175 This policy applies to both the primary and all secondary displays.
8176 8176
8177 If the policy is not set, the default value is 0 degrees and the user is 8177 If the policy is not set, the default value is 0 degrees and the user is
8178 free to change it. In this case, the default value is not reapplied at 8178 free to change it. In this case, the default value is not reapplied at
8179 restart.''', 8179 restart.''',
8180 }, 8180 },
8181 {
8182 'name': 'UsbDetachableWhitelist',
8183 'type': 'list',
8184 'schema': {
8185 'type': 'array',
8186 'items': {
8187 'type': 'object',
8188 'id': 'UsbDeviceId',
8189 'properties': {
8190 'vendor_id': { 'type': 'integer' },
8191 'product_id': { 'type': 'integer' },
8192 },
8193 },
8194 },
8195 'supported_on': ['chrome_os:51-'],
8196 'device_only': True,
8197 'features': {
8198 'dynamic_refresh': True,
8199 },
8200 'example_value': [
8201 {
8202 'vendor_id' : 0x0403,
8203 'product_id' : 0x6001,
8204 },
8205 {
8206 'vendor_id' : 0x413c,
8207 'product_id' : 0x2105,
8208 }
8209 ],
8210 'id': 317,
vpalatin 2016/03/01 01:54:23 I'm not sure what id I'm supposed to put here. I h
bartfab (slow) 2016/03/01 14:49:57 You did the right thing, but you could have just l
vpalatin 2016/03/01 17:49:01 Done.
8211 'caption': '''white list of USB detachable devices''',
bartfab (slow) 2016/03/01 14:49:57 Nit: s/white list/Whitelist/
vpalatin 2016/03/01 17:49:01 Done.
8212 'tags': [],
bartfab (slow) 2016/03/01 14:49:57 I am wondering whether this should be tagged full-
vpalatin 2016/03/01 17:49:01 'system-security' definitely, I will add it. From
8213 'desc': '''Defines the list of USB devices that are allowed to be detached from their kernel driver in order to be used through the chrome.usb API directl y inside a web application. Entries are pairs of USB Vendor Identifier and Produ ct Identifier to identify a specific hardware.
8214
8215 If this policy is not configured, the list of a detachable USB devices is considered as empty.''',
8216 },
bartfab (slow) 2016/03/01 14:49:57 Note that you need to add this policy to histogram
vpalatin 2016/03/01 17:49:01 I did not understand what I was supposed to do for
bartfab (slow) 2016/03/02 10:40:33 Yes, this is all you had to do. I was curious abo
8181 ], 8217 ],
8182 'messages': { 8218 'messages': {
8183 # Messages that are not associated to any policies. 8219 # Messages that are not associated to any policies.
8184 'win_supported_winxpsp2': { 8220 'win_supported_winxpsp2': {
8185 '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:'.''', 8221 '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:'.''',
8186 'text': '''Microsoft Windows XP SP2 or later''' 8222 'text': '''Microsoft Windows XP SP2 or later'''
8187 }, 8223 },
8188 'mac_chrome_preferences': { 8224 'mac_chrome_preferences': {
8189 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chromium are being edited''', 8225 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chromium are being edited''',
8190 'text': '''<ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> preferenc es''' 8226 'text': '''<ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> preferenc es'''
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
8300 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 8336 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
8301 'text': 'Default Settings (users can override)', 8337 'text': 'Default Settings (users can override)',
8302 }, 8338 },
8303 'doc_complex_policies_on_windows': { 8339 'doc_complex_policies_on_windows': {
8304 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', 8340 'desc': '''Text pointing the user to a help article for complex policies o n Windows''',
8305 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">https://www.chromium.org/administrators/complex-policies-on-windows<e x>https://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>' '', 8341 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">https://www.chromium.org/administrators/complex-policies-on-windows<e x>https://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>' '',
8306 }, 8342 },
8307 }, 8343 },
8308 'placeholders': [], 8344 'placeholders': [],
8309 } 8345 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698