OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "permissions", | 7 "namespace": "permissions", |
| 8 "description": "Use the <code>chrome.permissions</code> module to implement
optional permissions. As of Chrome 16, you can request optional permissions duri
ng your extension's regular application flow rather than at install time, so use
rs understand why the permissions are needed and use only those that are necessa
ry.", |
8 "types": [ | 9 "types": [ |
9 { | 10 { |
10 "id": "Permissions", | 11 "id": "Permissions", |
11 "type": "object", | 12 "type": "object", |
12 "properties": { | 13 "properties": { |
13 "permissions": { | 14 "permissions": { |
14 "type": "array", | 15 "type": "array", |
15 "items": {"type": "string"}, | 16 "items": {"type": "string"}, |
16 "optional": true, | 17 "optional": true, |
17 "description": "List of named permissions (does not include hosts or
origins)." | 18 "description": "List of named permissions (does not include hosts or
origins)." |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 "type": "boolean", | 135 "type": "boolean", |
135 "description": "True if the permissions were removed." | 136 "description": "True if the permissions were removed." |
136 } | 137 } |
137 ] | 138 ] |
138 } | 139 } |
139 ] | 140 ] |
140 } | 141 } |
141 ] | 142 ] |
142 } | 143 } |
143 ] | 144 ] |
OLD | NEW |