OLD | NEW |
1 { | 1 { |
2 "key": "{{ MANIFEST_KEY }}", | 2 "key": "{{ MANIFEST_KEY }}", |
3 "name": "__MSG_PRODUCT_NAME__", | 3 "name": "__MSG_PRODUCT_NAME__", |
4 "version": "{{ FULL_APP_VERSION }}", | 4 "version": "{{ FULL_APP_VERSION }}", |
5 "description": "__MSG_PRODUCT_DESCRIPTION__", | 5 "description": "__MSG_PRODUCT_DESCRIPTION__", |
6 "manifest_version": 2, | 6 "manifest_version": 2, |
7 "default_locale": "en", | 7 "default_locale": "en", |
8 "minimum_chrome_version": "32", | 8 "minimum_chrome_version": "32", |
9 "app": { | 9 "app": { |
10 {% if webapp_type == 'v1' %} | |
11 "launch": { | |
12 "local_path": "main.html" | |
13 } | |
14 {% else %} | |
15 "background": { | 10 "background": { |
16 "page": "background.html" | 11 "page": "background.html" |
17 } | 12 } |
18 {% endif %} | |
19 }, | 13 }, |
20 {% if webapp_type == 'v1' %} | |
21 "background": { | |
22 "page": "background.html", | |
23 "persistent": false | |
24 }, | |
25 {% endif %} | |
26 "icons": { | 14 "icons": { |
27 "128": "chromoting128.webp", | 15 "128": "chromoting128.webp", |
28 "48": "chromoting48.webp", | 16 "48": "chromoting48.webp", |
29 "16": "chromoting16.webp" | 17 "16": "chromoting16.webp" |
30 }, | 18 }, |
31 {% if webapp_type == 'v1' %} | |
32 "content_scripts": [ | |
33 { | |
34 "matches": [ | |
35 "{{ OAUTH2_REDIRECT_URL }}" | |
36 ], | |
37 "js": [ "cs_oauth2_trampoline.js" ] | |
38 }, | |
39 { | |
40 "matches": [ | |
41 "{{ THIRD_PARTY_AUTH_REDIRECT_URL }}" | |
42 ], | |
43 "js": [ "cs_third_party_auth_trampoline.js" ] | |
44 } | |
45 ], | |
46 "content_security_policy": "default-src 'self'; script-src 'self' {{ TALK_GADG
ET_HOST }} https://www.gstatic.com; style-src 'self' https://fonts.googleapis.co
m; img-src 'self' {{ TALK_GADGET_HOST }} data:; font-src *; connect-src 'self' {
{ OAUTH2_ACCOUNTS_HOST }} {{ GOOGLE_API_HOSTS }} {{ TALK_GADGET_HOST }} https://
relay.google.com", | |
47 {% endif %} | |
48 "optional_permissions": [ | 19 "optional_permissions": [ |
49 "<all_urls>" | 20 "<all_urls>" |
50 ], | 21 ], |
51 | 22 |
52 {% if webapp_type != 'v1' %} | |
53 "oauth2": { | 23 "oauth2": { |
54 "client_id": "{{ REMOTING_IDENTITY_API_CLIENT_ID }}", | 24 "client_id": "{{ REMOTING_IDENTITY_API_CLIENT_ID }}", |
55 "scopes": [ | 25 "scopes": [ |
56 {% if USE_GCD %} | 26 {% if USE_GCD %} |
57 "https://www.googleapis.com/auth/clouddevices", | 27 "https://www.googleapis.com/auth/clouddevices", |
58 {% endif %} | 28 {% endif %} |
59 "https://www.googleapis.com/auth/chromoting", | 29 "https://www.googleapis.com/auth/chromoting", |
60 "https://www.googleapis.com/auth/googletalk", | 30 "https://www.googleapis.com/auth/googletalk", |
61 "https://www.googleapis.com/auth/userinfo#email" | 31 "https://www.googleapis.com/auth/userinfo#email" |
62 ] | 32 ] |
63 }, | 33 }, |
64 "sandbox": { | 34 "sandbox": { |
65 "pages": [ "wcs_sandbox.html" ] | 35 "pages": [ "wcs_sandbox.html" ] |
66 }, | 36 }, |
67 {% endif %} | |
68 "permissions": [ | 37 "permissions": [ |
69 "{{ OAUTH2_ACCOUNTS_HOST }}/*", | 38 "{{ OAUTH2_ACCOUNTS_HOST }}/*", |
70 "{{ OAUTH2_API_BASE_URL }}/*", | 39 "{{ OAUTH2_API_BASE_URL }}/*", |
71 "{{ DIRECTORY_API_BASE_URL }}/*", | 40 "{{ DIRECTORY_API_BASE_URL }}/*", |
72 "{{ TELEMETRY_API_BASE_URL }}/*", | 41 "{{ TELEMETRY_API_BASE_URL }}/*", |
73 "{{ TALK_GADGET_HOST }}/talkgadget/*", | 42 "{{ TALK_GADGET_HOST }}/talkgadget/*", |
74 "https://relay.google.com/*", | 43 "https://relay.google.com/*", |
75 {% if PROXY_URL != '' %} | 44 {% if PROXY_URL != '' %} |
76 "{{ PROXY_URL }}", | 45 "{{ PROXY_URL }}", |
77 {% endif %} | 46 {% endif %} |
78 "storage", | |
79 "clipboardRead", | 47 "clipboardRead", |
80 "clipboardWrite", | 48 "clipboardWrite", |
81 "metricsPrivate", | 49 "contextMenus", |
82 "nativeMessaging" | |
83 {% if webapp_type != 'v1' %} | |
84 , | |
85 {"fileSystem": ["write"]}, | 50 {"fileSystem": ["write"]}, |
86 "fullscreen", | 51 "fullscreen", |
87 "identity", | 52 "identity", |
88 "contextMenus", | 53 "metricsPrivate", |
89 "overrideEscFullscreen" | 54 "nativeMessaging", |
90 {% endif %} | 55 "overrideEscFullscreen", |
91 {% if webapp_type != 'v1' %} | 56 "storage", |
92 ,{ | 57 { |
93 "socket": [ | 58 "socket": [ |
94 "udp-send-to", | 59 "udp-send-to", |
95 "udp-bind", | 60 "udp-bind", |
96 "udp-multicast-membership", | 61 "udp-multicast-membership", |
97 "resolve-host", | 62 "resolve-host", |
98 "network-state" | 63 "network-state" |
99 ] | 64 ] |
100 } | 65 } |
101 {% endif %} | 66 ], |
102 ] | 67 "sockets": { |
103 {% if webapp_type != 'v1' %} | |
104 ,"sockets": { | |
105 "tcp": { | 68 "tcp": { |
106 "connect": "{{ XMPP_SERVER }}" | 69 "connect": "{{ XMPP_SERVER }}" |
107 } | 70 } |
108 } | 71 } |
109 {% endif %} | |
110 } | 72 } |
OLD | NEW |