Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / remoting / webapp / crd / manifest.json.jinja2
blob29096ead67ddd88009f50587b43be49824071516
2   {{ MANIFEST_KEY_FOR_UNOFFICIAL_BUILD }}
3   "name": "__MSG_PRODUCT_NAME__",
4   "version": "{{ FULL_APP_VERSION }}",
5   "description": "__MSG_PRODUCT_DESCRIPTION__",
6   "manifest_version": 2,
7   "default_locale": "en",
8   "minimum_chrome_version": "32",
9   "app": {
10 {% if webapp_type == 'v1' %}
11     "launch": {
12       "local_path": "main.html"
13     }
14 {% else %}
15     "background": {
16       "page": "background.html"
17      }
18 {% endif %}
19   },
20 {% if webapp_type == 'v1' %}
21   "background": {
22     "page": "background.html",
23     "persistent": false
24   },
25 {% endif %}
26   "icons": {
27     "128": "chromoting128.webp",
28     "48": "chromoting48.webp",
29     "16": "chromoting16.webp"
30   },
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_GADGET_HOST }} https://www.gstatic.com; style-src 'self' https://fonts.googleapis.com; 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": [
49     "<all_urls>"
50   ],
52 {% if webapp_type != 'v1' %}
53   "oauth2": {
54     "client_id": "{{ REMOTING_IDENTITY_API_CLIENT_ID }}",
55     "scopes": [
56       {% if USE_GCD %}
57       "https://www.googleapis.com/auth/clouddevices",
58       {% endif %}
59       "https://www.googleapis.com/auth/chromoting",
60       "https://www.googleapis.com/auth/googletalk",
61       "https://www.googleapis.com/auth/userinfo#email"
62     ]
63   },
64   "sandbox": {
65     "pages": [ "wcs_sandbox.html" ]
66   },
67 {% endif %}
68   "permissions": [
69     "{{ OAUTH2_ACCOUNTS_HOST }}/*",
70     "{{ OAUTH2_API_BASE_URL }}/*",
71     "{{ DIRECTORY_API_BASE_URL }}/*",
72     "{{ TALK_GADGET_HOST }}/talkgadget/*",
73     "https://relay.google.com/*",
74     "storage",
75     "clipboardRead",
76     "clipboardWrite",
77     "nativeMessaging"
78 {% if webapp_type != 'v1' %}
79     ,
80     {"fileSystem": ["write"]},
81     "fullscreen",
82     "identity",
83     "contextMenus",
84     "overrideEscFullscreen"
85 {% endif %}
86 {% if webapp_type != 'v1' %}
87     ,{
88       "socket": [
89         "udp-send-to",
90         "udp-bind",
91         "udp-multicast-membership",
92         "resolve-host",
93         "network-state"
94       ]
95     }
96 {% endif %}
97   ]
98 {% if webapp_type != 'v1' %}
99   ,"sockets": {
100     "tcp": {
101       "connect": "{{ XMPP_SERVER }}"
102     }
103   }
104 {% endif %}