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

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: Rebased. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/resources/policy_templates.json
diff --git a/components/policy/resources/policy_templates.json b/components/policy/resources/policy_templates.json
index 133b4dfbd670f2a8945f2db217c2a576ba51cbc3..45006a30e2ede3db2772a3e13f57fabf2f7a6398 100644
--- a/components/policy/resources/policy_templates.json
+++ b/components/policy/resources/policy_templates.json
@@ -5740,7 +5740,9 @@
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 policy completely disables automatic timezone resolve by device location. It also overrides SystemTimezoneAutomaticDetection policy.''',
},
{
'name': 'SystemUse24HourClock',
@@ -8403,6 +8405,58 @@
if available, and store them on the device. Such files might, for
example, be used to improve display quality of attached monitors.''',
},
+ {
+ 'name': 'SystemTimezoneAutomaticDetection',
+ 'type': 'int-enum',
+ 'schema': {
+ 'type': 'integer',
+ 'enum': [ 0, 1, 2, 3 ],
+ },
+ 'items': [
+ {
+ 'name': 'TimezoneAutomaticDetectionUsersDecide',
+ 'value': 0,
+ 'caption': '''Let users decide.''',
+ },
+ {
+ 'name': 'TimezoneAutomaticDetectionDisabled',
+ 'value': 1,
+ 'caption': '''Never auto-detect timezone.''',
+ },
+ {
+ 'name': 'TimezoneAutomaticDetectionIPOnly',
+ 'value': 2,
+ 'caption': '''Always use coarse timezone detection.''',
+ },
+ {
+ 'name': 'TimezoneAutomaticDetectionSendWiFiAccessPoints',
+ 'value': 3,
+ 'caption': '''Always send WiFi acess-points to server while resolving timezone.''',
+ },
+ ],
+ 'supported_on': ['chrome_os:51-'],
+ 'device_only': True,
+ 'features': {
+ 'dynamic_refresh': True,
+ },
+ 'example_value': 0,
+ 'id': 326,
+ 'caption': '''Configure the automatic timezone detection method''',
+ 'tags': ['google-sharing'],
+ 'desc': '''When this policy is set, automatic timezone detection flow will be in one of the following ways depending on the value of the setting:
+
+ If set to TimezoneAutomaticDetectionUsersDecide, users would be able to control automatic timezone detection using normal controls in chrome://settings.
+
+ If set to TimezoneAutomaticDetectionDisabled, automatic timezone controls in chrome://settings will be disabled. Automatic timezone detection will be always off.
+
+ If set to TimezoneAutomaticDetectionIPOnly, 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 TimezoneAutomaticDetectionSendWiFiAccessPoints, 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 policy is not set, it will behave as if TimezoneAutomaticDetectionUsersDecide is set.
+
+ If SystemTimezone policy is set, it overrides this policy. In this case automatic timezone detection is completely disabled.''',
+ },
],
'messages': {
# Messages that are not associated to any policies.
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698