Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: manifest.json.tmpl

Issue 29333461: Issue 3516 - Add support for optional permissions (Closed)
Patch Set: Change re.split to .split Created Jan. 14, 2016, 5:01 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | packagerChrome.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 4
5 { 5 {
6 "manifest_version": 2, 6 "manifest_version": 2,
7 {%- if releaseBuild %} 7 {%- if releaseBuild %}
8 "name": "__MSG_name__", 8 "name": "__MSG_name__",
9 {%- else %} 9 {%- else %}
10 "name": "__MSG_name_devbuild__", 10 "name": "__MSG_name_devbuild__",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 {%- endif %} 51 {%- endif %}
52 52
53 {%- if icons %} 53 {%- if icons %}
54 "icons": {{icons|json}}, 54 "icons": {{icons|json}},
55 {%- endif %} 55 {%- endif %}
56 56
57 {%- if permissions %} 57 {%- if permissions %}
58 "permissions": {{permissions|json}}, 58 "permissions": {{permissions|json}},
59 {%- endif %} 59 {%- endif %}
60 60
61 {%- if optionalPermissions %}
62 "optional_permissions": {{optionalPermissions|json}},
63 {%- endif %}
64
61 {%- if backgroundScripts %} 65 {%- if backgroundScripts %}
62 "background": { 66 "background": {
63 "scripts": {{backgroundScripts|json}} 67 "scripts": {{backgroundScripts|json}}
64 }, 68 },
65 {%- endif %} 69 {%- endif %}
66 70
67 {%- if metadata.has_option('general', 'options') %} 71 {%- if metadata.has_option('general', 'options') %}
68 "options_page": {{metadata.get('general', 'options')|json}}, 72 "options_page": {{metadata.get('general', 'options')|json}},
69 {%- endif %} 73 {%- endif %}
70 74
71 {%- if contentScripts %} 75 {%- if contentScripts %}
72 "content_scripts": {{contentScripts|json}}, 76 "content_scripts": {{contentScripts|json}},
73 {%- endif %} 77 {%- endif %}
74 78
75 {%- if webAccessible %} 79 {%- if webAccessible %}
76 "web_accessible_resources": {{webAccessible|json}}, 80 "web_accessible_resources": {{webAccessible|json}},
77 {%- endif %} 81 {%- endif %}
78 82
79 {%- if metadata.has_option('general', 'managedStorageSchema') %} 83 {%- if metadata.has_option('general', 'managedStorageSchema') %}
80 "storage": { 84 "storage": {
81 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}} 85 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}}
82 }, 86 },
83 {%- endif %} 87 {%- endif %}
84 88
85 "_dummy": false 89 "_dummy": false
86 } 90 }
OLDNEW
« no previous file with comments | « no previous file | packagerChrome.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld