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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: components/policy/resources/policy_templates.json
diff --git a/components/policy/resources/policy_templates.json b/components/policy/resources/policy_templates.json
index 2eb824f8e2ef75652906ab1d40f8ab87c81e54f2..831a85b51935132b64d6091856bd95e34423c03d 100644
--- a/components/policy/resources/policy_templates.json
+++ b/components/policy/resources/policy_templates.json
@@ -5721,7 +5721,38 @@
{
'name': 'SystemTimezone',
'type': 'string',
- 'schema': { 'type': 'string' },
+ 'schema': {
+ 'type': 'object',
+ 'properties': {
+ '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.
+ 'timezone_detection_type': {
+ 'type': 'int-enum',
+ 'enum': [ 0, 1, 2, 3 ],
+ 'items': [
+ {
+ 'name': 'AUTOMATIC_TIMEZONE_DETECTION_USERS_DECIDE',
+ 'value': 0,
+ 'caption': '''Let users decide.''',
+ },
+ {
+ 'name': 'AUTOMATIC_TIMEZONE_DETECTION_DISABLED',
+ 'value': 1,
+ 'caption': '''Never auto-detect timezone.''',
+ },
+ {
+ 'name': 'AUTOMATIC_TIMEZONE_DETECTION_IP_ONLY',
+ 'value': 2,
+ 'caption': '''Always use coarse timezone detection.''',
+ },
+ {
+ 'name': 'AUTOMATIC_TIMEZONE_DETECTION_SEND_WIFI_ACCESS_POINTS',
+ 'value': 3,
+ 'caption': '''Always send WiFi acess-points to server.use fine-grained timezone detection (send curently visible WiFi access points to Geolocation API to better locate geographical position).''',
+ },
+ ],
+ },
+ },
+ },
'supported_on': ['chrome_os:22-'],
'device_only': True,
'features': {
@@ -5729,15 +5760,37 @@
},
'example_value': 'America/Los_Angeles',
'id': 158,
- 'caption': '''Timezone''',
+ 'caption': '''Timezone settings''',
'tags': [],
- 'desc': '''Specifies the timezone to be used for the device. 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 provided, the policy is still activated using "GMT" instead. If an empty string is provided, the policy is ignored.
+ 'desc': '''This policy controls device timezone parameters.
+
+ 1. |timezone| attribute specifies the timezone to be used for the device.
+
+ 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 provided, the policy is still activated using "GMT" instead. If an empty string is provided, the policy is ignored.
If this policy is not used, the currently active timezone will remain in use however users can change the timezone and the change is persistent. Thus a change by one user affects the login-screen and all other users.
New devices start out with the timezone set to "US/Pacific".
- The format of the value follows the names of timezones in the "IANA Time Zone 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".''',
+ The format of the value follows the names of timezones in the "IANA Time Zone 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".
+
+ Setting this attribute completely disables automatic timezone resolve by device location. It also overrides |timezone_detection_type| attribute.
+
+ 2. |timezone_detection_type| attribute specifies the automatic timezone detection mode.
+
+ When this attribute is set, automatic timezone detection flow will be in one of the following ways depending on the value of the setting:
+
+ If set to AUTOMATIC_TIMEZONE_DETECTION_USERS_DECIDE, users would be able to control automatic timezone detection using normal controls in chrome://settings.
+
+ If set to AUTOMATIC_TIMEZONE_DETECTION_DISABLED, automatic timezone controls in chrome://settings will be disabled. Automatic timezone detection will be always off. Timezone could be controlled either by |timezone| attribute or by timezone selector in chrome://settings.
+
+ If set to AUTOMATIC_TIMEZONE_DETECTION_IP_ONLY, timezone controls in chrome://settings will be disabled. Automatic timezone detection will be always on. Timezone detection will use IP-only method to resolve location.
+
+ If set to AUTOMATIC_TIMEZONE_DETECTION_SEND_WIFI_ACCESS_POINTS, timezone controls 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 Geolocation API server for fine-grained timezone detection.
+
+ If this attribute is not set, it will behave as if AUTOMATIC_TIMEZONE_DETECTION_USERS_DECIDE is set.
+
+ If |timezone| attribute is set. it overrides this attribute. In this case automatic timezone detection is completely disabled.''',
},
{
'name': 'SystemUse24HourClock',

Powered by Google App Engine
This is Rietveld 408576698