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

Side by Side Diff: manifest.json.tmpl

Issue 29342903: Issue 4059 - Adapt the manifest for Edge (awaiting commit) (Closed)
Patch Set: Remove the whitespaces Created May 28, 2016, 8:03 a.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 | no next file » | 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__",
11 {%- endif %} 11 {%- endif %}
12 12
13 "short_name": "__MSG_name__", 13 "short_name": "__MSG_name__",
14 "description": "__MSG_description__", 14 "description": "__MSG_description__",
15 "default_locale": "en_US", 15 "default_locale": "en_US",
16 "version": {{version|json}}, 16 "version": {{version|json}},
17 "author": {{metadata.get('general', 'author')|json}},
17 18
18 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'chrom e') %} 19 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'chrom e') %}
19 "minimum_chrome_version": {{metadata.get('compat', 'chrome')|json}}, 20 "minimum_chrome_version": {{metadata.get('compat', 'chrome')|json}},
20 {%- endif %} 21 {%- endif %}
21 22
22 {%- if pageAction %} 23 {%- if pageAction %}
23 "page_action": { 24 "page_action": {
24 "default_icon": {{pageAction.icon|json}}, 25 "default_icon": {{pageAction.icon|json}},
25 {%- if pageAction.popup %} 26 {%- if pageAction.popup %}
26 "default_popup": {{pageAction.popup|json}}, 27 "default_popup": {{pageAction.popup|json}},
(...skipping 19 matching lines...) Expand all
46 {%- if permissions %} 47 {%- if permissions %}
47 "permissions": {{permissions|json}}, 48 "permissions": {{permissions|json}},
48 {%- endif %} 49 {%- endif %}
49 50
50 {%- if optionalPermissions %} 51 {%- if optionalPermissions %}
51 "optional_permissions": {{optionalPermissions|json}}, 52 "optional_permissions": {{optionalPermissions|json}},
52 {%- endif %} 53 {%- endif %}
53 54
54 {%- if backgroundScripts %} 55 {%- if backgroundScripts %}
55 "background": { 56 "background": {
56 "scripts": {{backgroundScripts|json}} 57 "scripts": {{backgroundScripts|json}},
58 "persistent": true
57 }, 59 },
58 {%- endif %} 60 {%- endif %}
59 61
60 {%- if metadata.has_option('general', 'options') %} 62 {%- if metadata.has_option('general', 'options') %}
61 "options_page": {{metadata.get('general', 'options')|json}}, 63 "options_page": {{metadata.get('general', 'options')|json}},
62 {%- endif %} 64 {%- endif %}
63 65
64 {%- if metadata.has_option('general', 'devtools') %} 66 {%- if metadata.has_option('general', 'devtools') %}
65 "devtools_page": {{metadata.get('general', 'devtools')|json}}, 67 "devtools_page": {{metadata.get('general', 'devtools')|json}},
66 {%- endif %} 68 {%- endif %}
67 69
68 {%- if contentScripts %} 70 {%- if contentScripts %}
69 "content_scripts": {{contentScripts|json}}, 71 "content_scripts": {{contentScripts|json}},
70 {%- endif %} 72 {%- endif %}
71 73
72 {%- if webAccessible %} 74 {%- if webAccessible %}
73 "web_accessible_resources": {{webAccessible|json}}, 75 "web_accessible_resources": {{webAccessible|json}},
74 {%- endif %} 76 {%- endif %}
75 77
76 {%- if metadata.has_option('general', 'managedStorageSchema') %} 78 {%- if metadata.has_option('general', 'managedStorageSchema') %}
77 "storage": { 79 "storage": {
78 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}} 80 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}}
79 }, 81 },
80 {%- endif %} 82 {%- endif %}
81 83
82 "_dummy": false 84 "_dummy": false
83 } 85 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld