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

Unified Diff: chrome/app/policy/policy_templates.json

Issue 88423002: Add CloudExternalDataPolicyObserverChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace fix. Created 7 years, 1 month 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: chrome/app/policy/policy_templates.json
diff --git a/chrome/app/policy/policy_templates.json b/chrome/app/policy/policy_templates.json
index 9973463f4359ca5543aaf474f74f59f6ce7b16ec..72986d822d8968dad786153cf2618d0504912f53 100644
--- a/chrome/app/policy/policy_templates.json
+++ b/chrome/app/policy/policy_templates.json
@@ -31,7 +31,6 @@
# 'dict' - a dictionary value, containing other values indexed by strings
# NOTE: This type is not supported yet. http://crbug.com/108992
# 'external' - a policy that references external data.
-# NOTE: This type is not supported yet. http://crbug.com/256635
#
# Policy group descriptions, policy captions and similar texts are localized
# strings taken from the <message> nodes of the .grd file. Their name
@@ -118,7 +117,7 @@
# persistent IDs for all fields (but not for groups!) are needed. These are
# specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
# because doing so would break the deployed wire format!
-# For your editing convenience: highest ID currently used: 248
+# For your editing convenience: highest ID currently used: 249
#
# Placeholders:
# The following placeholder strings are automatically substituted:
@@ -5727,6 +5726,50 @@
If this policy is left not set, the data compression proxy feature will be available for the user to choose whether to use it or not.''',
},
+ {
+ 'name': 'Avatar',
Joao da Silva 2013/11/27 14:33:59 I find the name a bit too generic, maybe 'UserAvat
bartfab (slow) 2013/11/27 20:10:15 Done.
+ 'type': 'external',
Joao da Silva 2013/11/27 14:33:59 You'll probably have to update & roll grit to supp
bartfab (slow) 2013/11/27 20:10:15 Done: https://codereview.chromium.org/92213002
+ 'schema': {
+ 'type': 'object',
+ 'properties': {
+ 'url': { "type": "string" },
+ 'hash': { "type": "string" }
+ },
+ },
+ 'supported_on': ['chrome_os:33-'],
+ 'features': {
+ 'dynamic_refresh': True,
+ 'per_profile': True,
+ },
+ 'example_value': { "url": "http://example.com/avatar.jpg", "hash": "deadbeefdeadbeefdeadbeefdeadbeef" },
+ 'max_size': 524288,
+ 'id': 249,
+ 'caption': '''Avatar image''',
+ 'desc': '''Configure avatar image.
+
+ This policy allows you to configure the avatar image representing the user on the login screen. The policy is set by specifying the URL from which <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> can download the avatar image and a cryptographic hash used to verify the integrity of the download. The image must be in JPEG format, its size must not exceed 512kB. The URL must be accessible without any authentication.
Joao da Silva 2013/11/27 14:33:59 The hash is also used to determine if the picture
bartfab (slow) 2013/11/27 20:10:15 Done.
+
+ The policy should be specified as a string that expresses the URL and hash in JSON format, conforming to the following schema:
+ {
+ "type": "object",
+ "properties": {
+ "url": {
+ "description": "The URL from which the avatar image can be downloaded.",
+ "type": "string",
Joao da Silva 2013/11/27 14:33:59 JSON doesn't allow trailing commas
bartfab (slow) 2013/11/27 20:10:15 Trailing comma is best comma.
+ },
+ "hash": {
+ "description": "The SHA-1 hash of the avatar image.",
+ "type": "string",
+ }
+ }
+ }
+
+ If this policy is set, <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> will download and use the avatar image.
+
+ If you set this policy, users cannot change or override it.
+
+ If the policy is left not set, the user can choose the avatar image representing him/her on the login screen.''',
+ },
],
'messages': {
# Messages that are not associated to any policies.

Powered by Google App Engine
This is Rietveld 408576698