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

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

Issue 1843523002: ChromeOS: Add SystemTimezoneAutomaticDetection policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@596690--Implement-better-timezone-detection--refactoring-before-policy
Patch Set: Moved policy to SystemTimezone. Created 4 years, 8 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 5703 matching lines...) Expand 10 before | Expand all | Expand 10 after
5714 'tags': [], 5714 'tags': [],
5715 'desc': '''Disables taking screenshots. 5715 'desc': '''Disables taking screenshots.
5716 5716
5717 If enabled screenshots cannot be taken using keyboard shortcuts or extensi on APIs. 5717 If enabled screenshots cannot be taken using keyboard shortcuts or extensi on APIs.
5718 5718
5719 If disabled or not specified, taking screenshots is allowed.''' 5719 If disabled or not specified, taking screenshots is allowed.'''
5720 }, 5720 },
5721 { 5721 {
5722 'name': 'SystemTimezone', 5722 'name': 'SystemTimezone',
5723 'type': 'string', 5723 'type': 'string',
5724 'schema': { 'type': 'string' }, 5724 'schema': {
5725 'type': 'object',
5726 'properties': {
5727 'timezone': { 'type': 'main' },
cschuet (SLOW) 2016/03/31 08:55:21 This should be 'type': 'int-enum'.
Alexander Alekseev 2016/03/31 10:24:38 I reverted this.
5728 'timezone_detection_type': {
5729 'type': 'int-enum',
5730 'enum': [ 0, 1, 2, 3 ],
5731 'items': [
5732 {
5733 'name': 'AUTOMATIC_TIMEZONE_DETECTION_USERS_DECIDE',
5734 'value': 0,
5735 'caption': '''Let users decide.''',
5736 },
5737 {
5738 'name': 'AUTOMATIC_TIMEZONE_DETECTION_DISABLED',
5739 'value': 1,
5740 'caption': '''Never auto-detect timezone.''',
5741 },
5742 {
5743 'name': 'AUTOMATIC_TIMEZONE_DETECTION_IP_ONLY',
5744 'value': 2,
5745 'caption': '''Always use coarse timezone detection.''',
5746 },
5747 {
5748 'name': 'AUTOMATIC_TIMEZONE_DETECTION_SEND_WIFI_ACCESS_POINTS',
5749 'value': 3,
5750 'caption': '''Always send WiFi acess-points to server.use fine-g rained timezone detection (send curently visible WiFi access points to Geolocati on API to better locate geographical position).''',
5751 },
5752 ],
5753 },
5754 },
5755 },
5725 'supported_on': ['chrome_os:22-'], 5756 'supported_on': ['chrome_os:22-'],
5726 'device_only': True, 5757 'device_only': True,
5727 'features': { 5758 'features': {
5728 'dynamic_refresh': True, 5759 'dynamic_refresh': True,
5729 }, 5760 },
5730 'example_value': 'America/Los_Angeles', 5761 'example_value': 'America/Los_Angeles',
5731 'id': 158, 5762 'id': 158,
5732 'caption': '''Timezone''', 5763 'caption': '''Timezone settings''',
5733 'tags': [], 5764 'tags': [],
5734 'desc': '''Specifies the timezone to be used for the device. Users can ove rride the specified timezone for the current session. However, on logout it is s et back to the specified timezone. If an invalid value is provided, the policy i s still activated using "GMT" instead. If an empty string is provided, the polic y is ignored. 5765 'desc': '''This policy controls device timezone parameters.
5766
5767 1. |timezone| attribute specifies the timezone to be used for the device.
5768
5769 Users can override the specified timezone for the current session. However , on logout it is set back to the specified timezone. If an invalid value is pro vided, the policy is still activated using "GMT" instead. If an empty string is provided, the policy is ignored.
5735 5770
5736 If this policy is not used, the currently active timezone will remain in u se however users can change the timezone and the change is persistent. Thus a ch ange by one user affects the login-screen and all other users. 5771 If this policy is not used, the currently active timezone will remain in u se however users can change the timezone and the change is persistent. Thus a ch ange by one user affects the login-screen and all other users.
5737 5772
5738 New devices start out with the timezone set to "US/Pacific". 5773 New devices start out with the timezone set to "US/Pacific".
5739 5774
5740 The format of the value follows the names of timezones in the "IANA Time Z one Database" (see "https://en.wikipedia.org/wiki/Tz_database"). In particular, most timezones can be referred to by "continent/large_city" or "ocean/large_city ".''', 5775 The format of the value follows the names of timezones in the "IANA Time Z one Database" (see "https://en.wikipedia.org/wiki/Tz_database"). In particular, most timezones can be referred to by "continent/large_city" or "ocean/large_city ".
5776
5777 Setting this attribute completely disables automatic timezone resolve by d evice location. It also overrides |timezone_detection_type| attribute.
5778
5779 2. |timezone_detection_type| attribute specifies the automatic timezone de tection mode.
5780
5781 When this attribute is set, automatic timezone detection flow will be in o ne of the following ways depending on the value of the setting:
5782
5783 If set to AUTOMATIC_TIMEZONE_DETECTION_USERS_DECIDE, users would be able t o control automatic timezone detection using normal controls in chrome://setting s.
5784
5785 If set to AUTOMATIC_TIMEZONE_DETECTION_DISABLED, automatic timezone contro ls in chrome://settings will be disabled. Automatic timezone detection will be a lways off. Timezone could be controlled either by |timezone| attribute or by tim ezone selector in chrome://settings.
5786
5787 If set to AUTOMATIC_TIMEZONE_DETECTION_IP_ONLY, timezone controls in chrom e://settings will be disabled. Automatic timezone detection will be always on. T imezone detection will use IP-only method to resolve location.
5788
5789 If set to AUTOMATIC_TIMEZONE_DETECTION_SEND_WIFI_ACCESS_POINTS, timezone c ontrols in chrome://settings will be disabled. Automatic timezone detection will be always on. The list of visible WiFi access-points will be always sent to Geo location API server for fine-grained timezone detection.
5790
5791 If this attribute is not set, it will behave as if AUTOMATIC_TIMEZONE_DETE CTION_USERS_DECIDE is set.
5792
5793 If |timezone| attribute is set. it overrides this attribute. In this case automatic timezone detection is completely disabled.''',
5741 }, 5794 },
5742 { 5795 {
5743 'name': 'SystemUse24HourClock', 5796 'name': 'SystemUse24HourClock',
5744 'type': 'main', 5797 'type': 'main',
5745 'schema': { 'type': 'boolean' }, 5798 'schema': { 'type': 'boolean' },
5746 'supported_on': ['chrome_os:30-'], 5799 'supported_on': ['chrome_os:30-'],
5747 'device_only': True, 5800 'device_only': True,
5748 'features': { 5801 'features': {
5749 'dynamic_refresh': True, 5802 'dynamic_refresh': True,
5750 }, 5803 },
(...skipping 2745 matching lines...) Expand 10 before | Expand all | Expand 10 after
8496 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 8549 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
8497 'text': 'Default Settings (users can override)', 8550 'text': 'Default Settings (users can override)',
8498 }, 8551 },
8499 'doc_complex_policies_on_windows': { 8552 'doc_complex_policies_on_windows': {
8500 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', 8553 'desc': '''Text pointing the user to a help article for complex policies o n Windows''',
8501 '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>' '', 8554 '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>' '',
8502 }, 8555 },
8503 }, 8556 },
8504 'placeholders': [], 8557 'placeholders': [],
8505 } 8558 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698