| OLD | NEW |
| 1 <h1>Manifest for storage areas</h1> | 1 <h1>Manifest for storage areas</h1> |
| 2 | 2 |
| 3 <p> | 3 <p> |
| 4 Unlike the <code>local</code> and <code>sync</code> storage areas, the | 4 Unlike the <code>local</code> and <code>sync</code> storage areas, the |
| 5 <code>managed</code> storage area requires its structure to be declared as | 5 <code>managed</code> storage area requires its structure to be declared as |
| 6 <a href="http://tools.ietf.org/html/draft-zyp-json-schema-03">JSON Schema</a> | 6 <a href="http://tools.ietf.org/html/draft-zyp-json-schema-03">JSON Schema</a> |
| 7 and is strictly validated by Chrome. This schema must be stored in a file | 7 and is strictly validated by Chrome. This schema must be stored in a file |
| 8 indicated by the <code>"managed_schema"</code> property of the | 8 indicated by the <code>"managed_schema"</code> property of the |
| 9 <code>"storage"</code> manifest key and declares the enterprise | 9 <code>"storage"</code> manifest key and declares the enterprise |
| 10 policies supported by the {{platform}}. | 10 policies supported by the {{platform}}. |
| 11 </p> | 11 </p> |
| 12 | 12 |
| 13 <p> | 13 <p> |
| 14 Policies are analogous to options but are configured by a system | 14 Policies are analogous to options but are configured by a system |
| 15 administrator instead of the user, allowing the {{platform}} to be | 15 administrator instead of the user, allowing the {{platform}} to be |
| 16 preconfigured for all users of an organization. See | 16 preconfigured for all users of an organization. See |
| 17 <a href="http://www.chromium.org/administrators/">how Chrome handles policies</a
> | 17 <a href="http://www.chromium.org/administrators/">how Chrome handles policies</a
> |
| 18 for examples from Chrome itself. | 18 for examples from Chrome itself. |
| 19 </p> | 19 </p> |
| 20 | 20 |
| 21 <p> | 21 <p> |
| 22 After declaring the policies they can be read from the | 22 After declaring the policies they can be read from the |
| 23 <a href="../storage.html#property-managed">storage.managed</a> API. | 23 <a href="../storage#property-managed">storage.managed</a> API. |
| 24 It's up to the {{platform}} to enforce the policies configured | 24 It's up to the {{platform}} to enforce the policies configured |
| 25 by the administrator. | 25 by the administrator. |
| 26 </p> | 26 </p> |
| 27 | 27 |
| 28 <h2 id="manifest">Sample manifest.json</h2> | 28 <h2 id="manifest">Sample manifest.json</h2> |
| 29 | 29 |
| 30 <p> | 30 <p> |
| 31 The <code>storage.managed_schema</code> property indicates a file | 31 The <code>storage.managed_schema</code> property indicates a file |
| 32 within the {{platform}} that contains the policy schema. | 32 within the {{platform}} that contains the policy schema. |
| 33 </p> | 33 </p> |
| 34 | 34 |
| 35 <pre data-filename="manifest.json"> | 35 <pre data-filename="manifest.json"> |
| 36 { | 36 { |
| 37 "name": "My enterprise {{platform}}", | 37 "name": "My enterprise {{platform}}", |
| 38 "storage": { | 38 "storage": { |
| 39 "managed_schema": "schema.json" | 39 "managed_schema": "schema.json" |
| 40 }, | 40 }, |
| 41 ... | 41 ... |
| 42 } | 42 } |
| 43 </pre> | 43 </pre> |
| 44 | 44 |
| 45 <p> | 45 <p> |
| 46 Chrome will then load these policies from the underlying operating system | 46 Chrome will then load these policies from the underlying operating system |
| 47 and from Google Apps for signed-in users. The | 47 and from Google Apps for signed-in users. The |
| 48 <a href="../storage.html#event-onChanged">storage.onChanged</a> | 48 <a href="../storage#event-onChanged">storage.onChanged</a> |
| 49 event is fired whenever a policy change is detected, including while | 49 event is fired whenever a policy change is detected, including while |
| 50 the browser wasn't running if the {{platform}} uses | 50 the browser wasn't running if the {{platform}} uses |
| 51 <a href="../event_pages.html">event pages</a>. | 51 <a href="../event_pages">event pages</a>. |
| 52 You can verify the policies that Chrome loaded at | 52 You can verify the policies that Chrome loaded at |
| 53 <a href="chrome://policy">chrome://policy</a>. | 53 <a href="chrome://policy">chrome://policy</a>. |
| 54 </p> | 54 </p> |
| 55 | 55 |
| 56 <h2 id="format">Schema format</h2> | 56 <h2 id="format">Schema format</h2> |
| 57 | 57 |
| 58 <p> | 58 <p> |
| 59 The JSON Schema format has some additional requirements from Chrome: | 59 The JSON Schema format has some additional requirements from Chrome: |
| 60 </p> | 60 </p> |
| 61 | 61 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 "type": "object", | 147 "type": "object", |
| 148 "properties": { | 148 "properties": { |
| 149 "blacklisted": { "type": "boolean" }, | 149 "blacklisted": { "type": "boolean" }, |
| 150 "bypass_proxy": { "type": "boolean" } | 150 "bypass_proxy": { "type": "boolean" } |
| 151 } | 151 } |
| 152 } | 152 } |
| 153 } | 153 } |
| 154 } | 154 } |
| 155 } | 155 } |
| 156 </pre> | 156 </pre> |
| OLD | NEW |