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

Unified Diff: components/policy/resources/policy_templates.json

Issue 2544693002: [Chrome OS] Add a chrome os device wallpaper policy. (Closed)
Patch Set: Rebase. Modify the proto to be consistent with existing user wallpaper image proto. Created 4 years 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 5a601818d7b5c991f15f583aecb30ddfec41af0b..1dd9d77e0a4033c512463d6a8d1f8d2e89882742 100644
--- a/components/policy/resources/policy_templates.json
+++ b/components/policy/resources/policy_templates.json
@@ -139,7 +139,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: 356
+# For your editing convenience: highest ID currently used: 357
#
# Placeholders:
# The following placeholder strings are automatically substituted:
@@ -9339,6 +9339,38 @@
},
],
},
+ {
+ 'name': 'DeviceWallpaperImage',
+ 'type': 'external',
+ 'schema': {
+ 'type': 'object',
+ 'properties': {
+ 'url': { "type": "string" },
+ 'hash': { "type": "string" }
+ },
+ },
+ 'supported_on': ['chrome_os:57-'],
pastarmovj 2016/12/14 10:55:02 Please add 'future': True and only remove it when
xdai1 2016/12/14 18:22:25 The CL to implement the policy is ready to land ht
+ 'device_only': True,
+ 'features': {
+ 'dynamic_refresh': True,
+ },
+ 'example_value': { "url": "https://example.com/device_wallpaper.jpg", "hash": "examplewallpaperexamplewallpaperexamplewallpaperexamplewallpaper" },
+ 'max_size': 16777216,
+ 'id': 357,
+ 'caption': '''Device wallpaper image''',
+ 'tags': [],
+ 'desc': '''Configure device-level wallpaper image that is shown on the login screen if no user has yet signed in to the device. The policy is set by specifying the URL from which the Chrome OS device can download the wallpaper image and a cryptographic hash used to verify the integrity of the download. The image must be in JPEG format, its file size must not exceed 16MB. The URL must be accessible without any authentication. The wallpaper image is downloaded and cached. It will be re-downloaded whenever the URL or the hash changes.
+
+ The policy should be speicified as a string that expresses the URL and hash in JSON format, e.g.,
+ {
+ "url": "https://example.com/device_wallpaper.jpg",
+ "hash": "examplewallpaperexamplewallpaperexamplewallpaperexamplewallpaper"
+ }
+
+ If the device wallpaper policy is set, the Chrome OS device will download and use the wallpaper image on the login screen if no user has yet signed in to the device. Once the user logs in, the user's wallpaper policy kicks in.
+
+ If the device wallpaper policy is left not set, it's the user's wallpaper policy to decide what to show if the user's wallpaper policy is set.''',
+ },
],
'messages': {
# Messages that are not associated to any policies.

Powered by Google App Engine
This is Rietveld 408576698