OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This features file defines manifest keys implemented under src/extensions. | 5 // This features file defines manifest keys implemented under src/extensions. |
6 // See extensions/common/features/* to understand this file, in particular | 6 // See extensions/common/features/* to understand this file, in particular |
7 // feature.h, simple_feature.h, and base_feature_provider.h. | 7 // feature.h, simple_feature.h, and base_feature_provider.h. |
8 | 8 |
9 // To add a new whitelisted ID, SHA-1 it and force it to uppercase. In Bash: | 9 // To add a new whitelisted ID, SHA-1 it and force it to uppercase. In Bash: |
10 // | 10 // |
11 // $ echo -n "aaaabbbbccccddddeeeeffffgggghhhh" | \ | 11 // $ echo -n "aaaabbbbccccddddeeeeffffgggghhhh" | \ |
12 // sha1sum | tr '[:lower:]' '[:upper:]' | 12 // sha1sum | tr '[:lower:]' '[:upper:]' |
13 // 9A0417016F345C934A1A88F55CA17C05014EEEBA - | 13 // 9A0417016F345C934A1A88F55CA17C05014EEEBA - |
14 // | 14 // |
15 // Google employees: please update http://go/chrome-api-whitelist to map | 15 // Google employees: please update http://go/chrome-api-whitelist to map |
16 // hashes back to ids. | 16 // hashes back to ids. |
17 | 17 |
18 { | 18 { |
| 19 "app": { |
| 20 "channel": "stable", |
| 21 "extension_types": ["legacy_packaged_app", "hosted_app", "platform_app"] |
| 22 }, |
19 // The default platform app CSP can only be overridden by whitelisted apps. | 23 // The default platform app CSP can only be overridden by whitelisted apps. |
20 // This is a separate key from the top-level content_security_policy one since | 24 // This is a separate key from the top-level content_security_policy one since |
21 // we can't combine type restrictions with whitelisted ID restrictions. If | 25 // we can't combine type restrictions with whitelisted ID restrictions. If |
22 // there is a need for additional whitelisted entries, the feature system | 26 // there is a need for additional whitelisted entries, the feature system |
23 // should instead be extended to support OR-ing of restrictions. | 27 // should instead be extended to support OR-ing of restrictions. |
24 "app.content_security_policy": { | 28 "app.content_security_policy": { |
25 "channel": "stable", | 29 "channel": "stable", |
26 "extension_types": ["platform_app"], | 30 "extension_types": ["platform_app"], |
27 "min_manifest_version": 2, | 31 "min_manifest_version": 2, |
28 "whitelist": [ | 32 "whitelist": [ |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 { | 125 { |
122 "channel": "stable", | 126 "channel": "stable", |
123 "extension_types": ["extension", "legacy_packaged_app"] | 127 "extension_types": ["extension", "legacy_packaged_app"] |
124 }, | 128 }, |
125 { | 129 { |
126 "channel": "stable", | 130 "channel": "stable", |
127 "extension_types": ["platform_app"], | 131 "extension_types": ["platform_app"], |
128 "location": "component" | 132 "location": "component" |
129 } | 133 } |
130 ], | 134 ], |
| 135 "key": { |
| 136 "channel": "stable", |
| 137 "extension_types": "all" |
| 138 }, |
131 "kiosk_enabled": { | 139 "kiosk_enabled": { |
132 "channel": "stable", | 140 "channel": "stable", |
133 "extension_types": [ | 141 "extension_types": [ |
134 "platform_app" | 142 "platform_app" |
135 ] | 143 ] |
136 }, | 144 }, |
137 "kiosk_only": { | 145 "kiosk_only": { |
138 "channel": "dev", | 146 "channel": "dev", |
139 "extension_types": [ | 147 "extension_types": [ |
140 "platform_app" | 148 "platform_app" |
(...skipping 16 matching lines...) Expand all Loading... |
157 "nacl_modules": { | 165 "nacl_modules": { |
158 "channel": "stable", | 166 "channel": "stable", |
159 "extension_types": [ | 167 "extension_types": [ |
160 "extension", "legacy_packaged_app", "hosted_app", "platform_app" | 168 "extension", "legacy_packaged_app", "hosted_app", "platform_app" |
161 ] | 169 ] |
162 }, | 170 }, |
163 "name": { | 171 "name": { |
164 "channel": "stable", | 172 "channel": "stable", |
165 "extension_types": "all" | 173 "extension_types": "all" |
166 }, | 174 }, |
| 175 "oauth2": { |
| 176 "channel": "stable", |
| 177 "extension_types": [ |
| 178 "extension", "legacy_packaged_app", "platform_app" |
| 179 ] |
| 180 }, |
| 181 "oauth2.auto_approve": { |
| 182 "channel": "stable", |
| 183 "extension_types": [ |
| 184 "extension", "platform_app" |
| 185 ], |
| 186 "whitelist": [ |
| 187 "mdbihdcgjmagbcapkhhkjbbdlkflmbfo", // unit_tests |
| 188 "pafkbggdmjlpgkdkcbjmhmfcdpncadgh", // Google Now |
| 189 "nmmhkkegccagdldgiimedpiccmgmieda", // In-app payments support app. |
| 190 "4B1D0E19C6C43C008C44A8278C8B5BFE15ABEB3C", |
| 191 "F7FA7ABC1ECB89BA8EE6656847EFABBF43BB9BCA", |
| 192 "1A26E32DE447A17CBE5E9750CDBA78F58539B39C", // TODO(rockot): Kill these. |
| 193 "E61F841D8210B6A9891E5384CB665FBED31FCD7B", // http://crbug.com/281715 |
| 194 |
| 195 // TODO(joaodasilva): remove these two once we have the new policy to |
| 196 // grant auto approval by ID. http://crbug.com/399392 |
| 197 "A8208CCC87F8261AFAEB6B85D5E8D47372DDEA6B", |
| 198 "A4577D8C2AF4CF26F40CBCA83FFA4251D6F6C8F8" |
| 199 ] |
| 200 }, |
167 "offline_enabled": { | 201 "offline_enabled": { |
168 "channel": "stable", | 202 "channel": "stable", |
169 "extension_types": [ | 203 "extension_types": [ |
170 "extension", "legacy_packaged_app", "hosted_app", "platform_app" | 204 "extension", "legacy_packaged_app", "hosted_app", "platform_app" |
171 ] | 205 ] |
172 }, | 206 }, |
173 "options_ui": { | 207 "options_ui": { |
174 "channel": "trunk", | 208 "channel": "trunk", |
175 "extension_types": ["extension", "legacy_packaged_app"] | 209 "extension_types": ["extension", "legacy_packaged_app"] |
176 }, | 210 }, |
(...skipping 24 matching lines...) Expand all Loading... |
201 "extension_types": ["platform_app"], | 235 "extension_types": ["platform_app"], |
202 "location": "component" | 236 "location": "component" |
203 } | 237 } |
204 ], | 238 ], |
205 "webview": { | 239 "webview": { |
206 "channel": "stable", | 240 "channel": "stable", |
207 "extension_types": ["platform_app"], | 241 "extension_types": ["platform_app"], |
208 "min_manifest_version": 2 | 242 "min_manifest_version": 2 |
209 } | 243 } |
210 } | 244 } |
OLD | NEW |