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

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: 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 unified diff | Download patch
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 # templates and documentation. The policy definition list that Chrome sees 130 # templates and documentation. The policy definition list that Chrome sees
131 # will include policies marked with 'future'. If a WIP policy isn't meant to 131 # will include policies marked with 'future'. If a WIP policy isn't meant to
132 # be seen by the policy providers either, the 'supported_on' key should be set 132 # be seen by the policy providers either, the 'supported_on' key should be set
133 # to an empty list. 133 # to an empty list.
134 # 134 #
135 # IDs: 135 # IDs:
136 # Since a Protocol Buffer definition is generated from this file, unique and 136 # Since a Protocol Buffer definition is generated from this file, unique and
137 # persistent IDs for all fields (but not for groups!) are needed. These are 137 # persistent IDs for all fields (but not for groups!) are needed. These are
138 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, 138 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
139 # because doing so would break the deployed wire format! 139 # because doing so would break the deployed wire format!
140 # For your editing convenience: highest ID currently used: 325 140 # For your editing convenience: highest ID currently used: 325
Andrew T Wilson (Slow) 2016/04/07 12:07:20 Please remember to update this ID in the future wh
Alexander Alekseev 2016/04/08 01:15:05 I am sorry, I missed this.
141 # 141 #
142 # Placeholders: 142 # Placeholders:
143 # The following placeholder strings are automatically substituted: 143 # The following placeholder strings are automatically substituted:
144 # $1 -> Google Chrome / Chromium 144 # $1 -> Google Chrome / Chromium
145 # $2 -> Google Chrome OS / Chromium OS 145 # $2 -> Google Chrome OS / Chromium OS
146 # $3 -> Google Chrome Frame / Chromium Frame 146 # $3 -> Google Chrome Frame / Chromium Frame
147 # $6 is reserved for doc_writer 147 # $6 is reserved for doc_writer
148 # 148 #
149 # Device Policy: 149 # Device Policy:
150 # An additional flag 'device_only' (optional, defaults to False) indicates 150 # An additional flag 'device_only' (optional, defaults to False) indicates
(...skipping 5582 matching lines...) Expand 10 before | Expand all | Expand 10 after
5733 'example_value': 'America/Los_Angeles', 5733 'example_value': 'America/Los_Angeles',
5734 'id': 158, 5734 'id': 158,
5735 'caption': '''Timezone''', 5735 'caption': '''Timezone''',
5736 'tags': [], 5736 'tags': [],
5737 '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. 5737 '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.
5738 5738
5739 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. 5739 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.
5740 5740
5741 New devices start out with the timezone set to "US/Pacific". 5741 New devices start out with the timezone set to "US/Pacific".
5742 5742
5743 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 ".''', 5743 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 ".
5744
5745 Setting this policy completely disables automatic timezone resolve by devi ce location. It also overrides SystemTimezoneAutomaticDetection policy.''',
5744 }, 5746 },
5745 { 5747 {
5746 'name': 'SystemUse24HourClock', 5748 'name': 'SystemUse24HourClock',
5747 'type': 'main', 5749 'type': 'main',
5748 'schema': { 'type': 'boolean' }, 5750 'schema': { 'type': 'boolean' },
5749 'supported_on': ['chrome_os:30-'], 5751 'supported_on': ['chrome_os:30-'],
5750 'device_only': True, 5752 'device_only': True,
5751 'features': { 5753 'features': {
5752 'dynamic_refresh': True, 5754 'dynamic_refresh': True,
5753 }, 5755 },
(...skipping 2642 matching lines...) Expand 10 before | Expand all | Expand 10 after
8396 8398
8397 When this policy is set to false, the device will not attempt to 8399 When this policy is set to false, the device will not attempt to
8398 contact the Quirks Server to download configuration files. 8400 contact the Quirks Server to download configuration files.
8399 8401
8400 If this policy is true or not configured then 8402 If this policy is true or not configured then
8401 <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> will 8403 <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> will
8402 automatically contact the Quirks Server and download configuration files, 8404 automatically contact the Quirks Server and download configuration files,
8403 if available, and store them on the device. Such files might, for 8405 if available, and store them on the device. Such files might, for
8404 example, be used to improve display quality of attached monitors.''', 8406 example, be used to improve display quality of attached monitors.''',
8405 }, 8407 },
8408 {
8409 'name': 'SystemTimezoneAutomaticDetection',
8410 'type': 'int-enum',
8411 'schema': {
8412 'type': 'integer',
8413 'enum': [ 0, 1, 2, 3 ],
8414 },
8415 'items': [
8416 {
8417 'name': 'TimezoneAutomaticDetectionUsersDecide',
8418 'value': 0,
8419 'caption': '''Let users decide.''',
8420 },
8421 {
8422 'name': 'TimezoneAutomaticDetectionDisabled',
8423 'value': 1,
8424 'caption': '''Never auto-detect timezone.''',
8425 },
8426 {
8427 'name': 'TimezoneAutomaticDetectionIPOnly',
8428 'value': 2,
8429 'caption': '''Always use coarse timezone detection.''',
8430 },
8431 {
8432 'name': 'TimezoneAutomaticDetectionSendWiFiAccessPoints',
8433 'value': 3,
8434 'caption': '''Always send WiFi acess-points to server while resolving timezone.''',
8435 },
8436 ],
8437 'supported_on': ['chrome_os:51-'],
8438 'device_only': True,
8439 'features': {
8440 'dynamic_refresh': True,
8441 },
8442 'example_value': 0,
8443 'id': 326,
8444 'caption': '''Configure the automatic timezone detection method''',
8445 'tags': ['google-sharing'],
8446 '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:
8447
8448 If set to TimezoneAutomaticDetectionUsersDecide, users would be able to co ntrol automatic timezone detection using normal controls in chrome://settings.
8449
8450 If set to TimezoneAutomaticDetectionDisabled, automatic timezone controls in chrome://settings will be disabled. Automatic timezone detection will be alwa ys off.
8451
8452 If set to TimezoneAutomaticDetectionIPOnly, timezone controls in chrome:// settings will be disabled. Automatic timezone detection will be always on. Timez one detection will use IP-only method to resolve location.
8453
8454 If set to TimezoneAutomaticDetectionSendWiFiAccessPoints, timezone control s in chrome://settings will be disabled. Automatic timezone detection will be al ways on. The list of visible WiFi access-points will be always sent to Geolocati on API server for fine-grained timezone detection.
8455
8456 If this policy is not set, it will behave as if TimezoneAutomaticDetection UsersDecide is set.
8457
8458 If SystemTimezone policy is set, it overrides this policy. In this case au tomatic timezone detection is completely disabled.''',
8459 },
8406 ], 8460 ],
8407 'messages': { 8461 'messages': {
8408 # Messages that are not associated to any policies. 8462 # Messages that are not associated to any policies.
8409 'win_supported_winxpsp2': { 8463 'win_supported_winxpsp2': {
8410 '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:'.''', 8464 '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:'.''',
8411 'text': '''Microsoft Windows XP SP2 or later''' 8465 'text': '''Microsoft Windows XP SP2 or later'''
8412 }, 8466 },
8413 'mac_chrome_preferences': { 8467 'mac_chrome_preferences': {
8414 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chromium are being edited''', 8468 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chromium are being edited''',
8415 'text': '''<ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> preferenc es''' 8469 '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
8525 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 8579 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
8526 'text': 'Default Settings (users can override)', 8580 'text': 'Default Settings (users can override)',
8527 }, 8581 },
8528 'doc_complex_policies_on_windows': { 8582 'doc_complex_policies_on_windows': {
8529 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', 8583 'desc': '''Text pointing the user to a help article for complex policies o n Windows''',
8530 '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>' '', 8584 '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>' '',
8531 }, 8585 },
8532 }, 8586 },
8533 'placeholders': [], 8587 'placeholders': [],
8534 } 8588 }
OLDNEW
« 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