OLD | NEW |
1 { | 1 { |
2 {{ MANIFEST_KEY_FOR_UNOFFICIAL_BUILD }} | 2 {{ MANIFEST_KEY_FOR_UNOFFICIAL_BUILD }} |
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' %} | 10 {% if webapp_type == 'v1' %} |
(...skipping 24 matching lines...) Expand all Loading... |
35 "{{ THIRD_PARTY_AUTH_REDIRECT_URL }}" | 35 "{{ THIRD_PARTY_AUTH_REDIRECT_URL }}" |
36 ], | 36 ], |
37 "js": [ "cs_third_party_auth_trampoline.js" ] | 37 "js": [ "cs_third_party_auth_trampoline.js" ] |
38 } | 38 } |
39 ], | 39 ], |
40 "content_security_policy": "default-src 'self'; script-src 'self' {{ TALK_GADG
ET_HOST }}; style-src 'self' https://fonts.googleapis.com; img-src 'self' {{ TAL
K_GADGET_HOST }}; font-src *; connect-src 'self' {{ OAUTH2_ACCOUNTS_HOST }} {{ G
OOGLE_API_HOSTS }} {{ TALK_GADGET_HOST }} https://relay.google.com", | 40 "content_security_policy": "default-src 'self'; script-src 'self' {{ TALK_GADG
ET_HOST }}; style-src 'self' https://fonts.googleapis.com; img-src 'self' {{ TAL
K_GADGET_HOST }}; font-src *; connect-src 'self' {{ OAUTH2_ACCOUNTS_HOST }} {{ G
OOGLE_API_HOSTS }} {{ TALK_GADGET_HOST }} https://relay.google.com", |
41 {% endif %} | 41 {% endif %} |
42 "optional_permissions": [ | 42 "optional_permissions": [ |
43 "<all_urls>" | 43 "<all_urls>" |
44 ], | 44 ], |
| 45 |
| 46 {% if webapp_type != 'v1' %} |
| 47 "oauth2": { |
| 48 "client_id": "{{ REMOTING_IDENTITY_API_CLIENT_ID }}", |
| 49 "scopes": [ |
| 50 "https://www.googleapis.com/auth/chromoting https://www.googleapis.com/aut
h/googletalk https://www.googleapis.com/auth/userinfo#email" |
| 51 ] |
| 52 }, |
| 53 "sandbox": { |
| 54 "pages": [ "wcs_sandbox.html" ] |
| 55 }, |
| 56 {% endif %} |
| 57 |
45 "permissions": [ | 58 "permissions": [ |
46 "{{ OAUTH2_ACCOUNTS_HOST }}/*", | 59 "{{ OAUTH2_ACCOUNTS_HOST }}/*", |
47 "{{ OAUTH2_API_BASE_URL }}/*", | 60 "{{ OAUTH2_API_BASE_URL }}/*", |
48 "{{ DIRECTORY_API_BASE_URL }}/*", | 61 "{{ DIRECTORY_API_BASE_URL }}/*", |
49 "{{ TALK_GADGET_HOST }}/talkgadget/*", | 62 "{{ TALK_GADGET_HOST }}/talkgadget/*", |
50 "https://relay.google.com/*", | 63 "https://relay.google.com/*", |
51 "storage", | 64 "storage", |
52 "clipboardRead", | 65 "clipboardRead", |
53 "clipboardWrite", | 66 "clipboardWrite", |
54 "nativeMessaging" | 67 "nativeMessaging" |
(...skipping 10 matching lines...) Expand all Loading... |
65 "tcp-connect", | 78 "tcp-connect", |
66 "tcp-listen", | 79 "tcp-listen", |
67 "udp-send-to", | 80 "udp-send-to", |
68 "udp-bind", | 81 "udp-bind", |
69 "udp-multicast-membership", | 82 "udp-multicast-membership", |
70 "resolve-host", | 83 "resolve-host", |
71 "network-state" | 84 "network-state" |
72 ] | 85 ] |
73 } | 86 } |
74 {% endif %} | 87 {% endif %} |
75 ], | 88 ] |
76 | |
77 {% if webapp_type == 'v1' %} | |
78 "plugins": [ | |
79 { "path": "remoting_host_plugin.dll", "public": false }, | |
80 { "path": "libremoting_host_plugin.ia32.so", "public": false }, | |
81 { "path": "libremoting_host_plugin.x64.so", "public": false }, | |
82 { "path": "remoting_host_plugin.plugin", "public": false } | |
83 ], | |
84 "requirements": { | |
85 "plugins": { | |
86 "npapi": false | |
87 } | |
88 } | |
89 {% else %} | |
90 "oauth2": { | |
91 "client_id": "{{ REMOTING_IDENTITY_API_CLIENT_ID }}", | |
92 "scopes": [ | |
93 "https://www.googleapis.com/auth/chromoting https://www.googleapis.com/aut
h/googletalk https://www.googleapis.com/auth/userinfo#email" | |
94 ] | |
95 }, | |
96 "sandbox": { | |
97 "pages": [ "wcs_sandbox.html" ] | |
98 } | |
99 {% endif %} | |
100 | |
101 } | 89 } |
OLD | NEW |