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

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

Issue 2544693002: [Chrome OS] Add a chrome os device wallpaper policy. (Closed)
Patch Set: Address pastarmovj@'s comments. 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
« no previous file with comments | « chromeos/settings/cros_settings_names.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 5a601818d7b5c991f15f583aecb30ddfec41af0b..b6f31f855e688a81646bf797ebdb1abb86ad8f58 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-'],
+ '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": "examplewallpaperhash"
+ }
+
+ 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.
« no previous file with comments | « chromeos/settings/cros_settings_names.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698