684df88402c0a1c7a65ae489f0f0bfb377aa732d
[platform/framework/web/crosswalk.git] / src / chrome / test / data / policy / policy_test_cases.json
1 {
2   "-- Template --": {
3     "intro": "Top-level entries map a policy name to its test parameters, described below. The name of the top level entry should be of the form <policy name>[.suffix]. The optional suffix is used for defining multiple test cases for a single policy.",
4
5     "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos", "Defaults to empty if not specified."],
6     "official_only": "Whether this policy exists in official builds only. Defaults to |false| if not specified.",
7     "can_be_recommended": "Whether a recommended value may be set for the policy. Defaults to |false| if not specified.",
8     "test_policy": "A policy dictionary that should make the preferences affected by this policy become policy-controlled. Usually just sets the current policy. Defaults to an empty dictionary if not specified.",
9     "note": "If the policy affects any preferences, the following array should be specified with one entry per such preference.",
10     "pref_mappings": [
11       { "pref": "The affected preference's name.",
12         "local_state": "Whether |pref| is registered in local state's PrefService instead of the profile's PrefService. Defaults to |false| if not specified.",
13         "check_for_mandatory": "Should the preference be tested when a mandatory value is set for the policy? Defaults to |true| if not specified.",
14         "check_for_recommended": "Should the preference be tested when a recommended value is set for the policy? Defaults to |true| if not specified.",
15         "note": "When |can_be_recommended| is |false|, the policy is never set to a recommended value so |check_for_recommended| has no effect.",
16         "note": "The following entries should be specified if controlled setting indicators exist for |pref| in the settings UI.",
17         "indicator_test_setup_js": "Any JavaScript that should be executed before testing the indicators. This should be specified only if an explicit user action must be simulated (e.g. clicking a button).",
18         "indicator_selector": "A CSS selector that locates all controlled setting indicators for |pref|. This is appended to the selector 'span.controlled-setting-indicator' and if not specified, defaults to '[pref=(the value of |pref|)', e.g. '[pref=homepage]'.",
19         "note": "Any number of test cases may be specified in the following array.",
20         "indicator_tests": [
21           { "policy": "A policy dictionary that should affect |pref| when set as mandatory or recommended policy.",
22             "value": "The value that |pref| should take on. This must only be specified if |pref| has multiple controlled setting indicators, each corresponding to a specific value (e.g. indicators next to radio buttons).",
23             "readonly": "Whether setting the policy dictionary as recommended should cause |pref| to become read-only in the settings UI. This will be the case when the dictionary sets another policy that makes |pref| not applicable (e.g. setting 'homepage is NTP' makes the 'homepage URL' pref not applicable and read-only)."
24           }
25         ]
26       }
27     ],
28     "note": "The following entry should be specified if there is a controlled setting indicator that reacts to the policy directly, without a preference serving as an intermediary.",
29     "indicator_selector": "A CSS selector that locates the controlled setting indicator directly affected by the policy. This is appended to the selector 'span.controlled-setting-indicator'."
30   },
31
32   "HomepageLocation": {
33     "os": ["win", "linux", "mac", "chromeos"],
34     "can_be_recommended": true,
35     "test_policy": { "HomepageLocation": "http://chromium.org" },
36     "pref_mappings": [
37       { "pref": "homepage",
38         "indicator_tests": [
39           { "policy": { "HomepageIsNewTabPage": false, "HomepageLocation": "http://chromium.org" } },
40           { "policy": { "HomepageIsNewTabPage": true, "HomepageLocation": "http://chromium.org" },
41             "readonly": true
42           }
43         ]
44       }
45     ]
46   },
47
48   "HomepageIsNewTabPage": {
49     "os": ["win", "linux", "mac", "chromeos"],
50     "can_be_recommended": true,
51     "test_policy": { "HomepageIsNewTabPage": true },
52     "pref_mappings": [
53       { "pref": "homepage_is_newtabpage",
54         "indicator_tests": [
55           { "policy": { "HomepageIsNewTabPage": false },
56             "value": "false"},
57           { "policy": { "HomepageIsNewTabPage": true },
58             "value": "true"}
59         ]
60       }
61     ]
62   },
63
64   "DefaultBrowserSettingEnabled": {
65     "os": ["win", "mac", "linux"],
66     "test_policy": { "DefaultBrowserSettingEnabled": true },
67     "pref_mappings": [
68       { "pref": "browser.default_browser_setting_enabled",
69         "local_state": true
70       }
71     ]
72   },
73
74   "ApplicationLocaleValue": {
75     "os": ["win"],
76     "can_be_recommended": true,
77     "test_policy": { "ApplicationLocaleValue": "fr" },
78     "pref_mappings": [
79       { "pref": "intl.app_locale",
80         "local_state": true
81       }
82     ]
83   },
84
85   "AlternateErrorPagesEnabled": {
86     "os": ["win", "linux", "mac", "chromeos"],
87     "can_be_recommended": true,
88     "test_policy": { "AlternateErrorPagesEnabled": false },
89     "pref_mappings": [
90       { "pref": "alternate_error_pages.enabled",
91         "indicator_tests": [
92           { "policy": { "AlternateErrorPagesEnabled": false } }
93         ]
94       }
95     ]
96   },
97
98   "SearchSuggestEnabled": {
99     "os": ["win", "linux", "mac", "chromeos"],
100     "can_be_recommended": true,
101     "test_policy": { "SearchSuggestEnabled": false },
102     "pref_mappings": [
103       { "pref": "search.suggest_enabled",
104         "indicator_tests": [
105           { "policy": { "SearchSuggestEnabled": false } }
106         ]
107       }
108     ]
109   },
110
111   "DnsPrefetchingEnabled": {
112     "os": ["win", "linux", "mac", "chromeos"],
113     "can_be_recommended": true,
114     "test_policy": { "DnsPrefetchingEnabled": false },
115     "pref_mappings": [
116       { "pref": "dns_prefetching.enabled" },
117       { "pref": "net.network_prediction_options",
118         "indicator_tests": [
119           { "policy": { "DnsPrefetchingEnabled": false } }
120         ]
121       }
122     ]
123   },
124
125   "NetworkPredictionOptions": {
126     "os": ["win", "linux", "mac", "chromeos"],
127     "can_be_recommended": true,
128     "test_policy": { "NetworkPredictionOptions": 2 },
129     "pref_mappings": [
130       { "pref": "dns_prefetching.enabled" },
131       { "pref": "net.network_prediction_options",
132         "indicator_tests": [
133           { "policy": { "NetworkPredictionOptions": 2 } }
134         ]
135       }
136     ]
137   },
138
139   "DisableSpdy": {
140     "os": ["win", "linux", "mac", "chromeos"],
141     "test_policy": { "DisableSpdy": true },
142     "pref_mappings": [
143       { "pref": "spdy.disabled" }
144     ]
145   },
146
147   "DisabledSchemes": {
148     "os": ["win", "linux", "mac", "chromeos"],
149     "test_policy": { "DisabledSchemes": ["file"] },
150     "pref_mappings": [
151       { "pref": "policy.url_blacklist" }
152     ]
153   },
154
155   "JavascriptEnabled": {
156     "os": ["win", "linux", "mac", "chromeos"],
157     "test_policy": { "JavascriptEnabled": false },
158     "pref_mappings": [
159       { "pref": "profile.managed_default_content_settings.javascript",
160         "indicator_selector": "[content-setting=javascript]",
161         "indicator_tests": [
162           { "policy": { "JavascriptEnabled": false },
163             "value": "block"}
164         ]
165       }
166     ]
167   },
168
169   "IncognitoEnabled": {
170     "os": ["win", "linux", "mac", "chromeos"],
171     "test_policy": { "IncognitoEnabled": false },
172     "pref_mappings": [
173       { "pref": "incognito.mode_availability" }
174     ]
175   },
176
177   "IncognitoModeAvailability": {
178     "os": ["win", "linux", "mac", "chromeos"],
179     "test_policy": { "IncognitoModeAvailability": 1 },
180     "pref_mappings": [
181       { "pref": "incognito.mode_availability" }
182     ]
183   },
184
185   "SavingBrowserHistoryDisabled": {
186     "os": ["win", "linux", "mac", "chromeos"],
187     "test_policy": { "SavingBrowserHistoryDisabled": true },
188     "pref_mappings": [
189       { "pref": "history.saving_disabled" }
190     ]
191   },
192
193   "AllowDeletingBrowserHistory": {
194     "os": [],
195     "test_policy": { "AllowDeletingBrowserHistory": false },
196     "pref_mappings": [
197       { "pref": "history.deleting_enabled" }
198     ]
199   },
200
201   "RemoteAccessClientFirewallTraversal": {
202   },
203
204   "RemoteAccessHostFirewallTraversal": {
205     "os": [],
206     "test_policy": { "RemoteAccessHostFirewallTraversal": true },
207     "pref_mappings": [
208       { "pref": "remote_access.host_firewall_traversal" }
209     ],
210
211     "note": "TODO(frankf): Enable on all OS after crbug.com/121066 is fixed."
212   },
213
214   "RemoteAccessHostRequireTwoFactor": {
215     "os": [],
216     "test_policy": { "RemoteAccessHostRequireTwoFactor": false },
217     "pref_mappings": [
218       { "pref": "remote_access.host_require_two_factor" }
219     ]
220   },
221
222   "RemoteAccessHostDomain": {
223     "os": [],
224     "test_policy": { "RemoteAccessHostDomain": "" },
225     "pref_mappings": [
226       { "pref": "remote_access.host_domain" }
227     ]
228   },
229
230   "RemoteAccessHostTalkGadgetPrefix": {
231     "os": [],
232     "test_policy": { "RemoteAccessHostTalkGadgetPrefix": "chromoting-host" },
233     "pref_mappings": [
234       { "pref": "remote_access.host_talkgadget_prefix" }
235     ]
236   },
237
238   "RemoteAccessHostRequireCurtain": {
239     "os": [],
240     "test_policy": { "RemoteAccessHostRequireCurtain": false },
241     "pref_mappings": [
242       { "pref": "remote_access.host_require_curtain" }
243     ]
244   },
245
246   "RemoteAccessHostAllowClientPairing": {
247     "os": [],
248     "test_policy": { "RemoteAccessHostAllowClientPairing": true },
249     "pref_mappings": [
250       { "pref": "remote_access.host_allow_client_pairing" }
251     ]
252   },
253
254   "RemoteAccessHostAllowGnubbyAuth": {
255     "os": [],
256     "test_policy": { "RemoteAccessHostAllowGnubbyAuth": true },
257     "pref_mappings": [
258       { "pref": "remote_access.host_allow_gnubby_auth" }
259     ]
260   },
261
262   "RemoteAccessHostAllowRelayedConnection": {
263     "os": [],
264     "test_policy": { "RemoteAccessHostAllowRelayedConnection": true },
265     "pref_mappings": [
266       { "pref": "remote_access.host_allow_relayed_connection" }
267     ]
268   },
269
270   "RemoteAccessHostUdpPortRange": {
271     "os": [],
272     "test_policy": { "RemoteAccessHostUdpPortRange": "12400-12409" },
273     "pref_mappings": [
274       { "pref": "remote_access.host_udp_port_range" }
275     ]
276   },
277
278   "PrintingEnabled": {
279     "os": ["win", "linux", "mac", "chromeos"],
280     "test_policy": { "PrintingEnabled": false },
281     "pref_mappings": [
282       { "pref": "printing.enabled" }
283     ]
284   },
285
286   "CloudPrintProxyEnabled": {
287     "os": [],
288     "test_policy": { "CloudPrintProxyEnabled": true },
289     "pref_mappings": [
290       { "pref": "cloud_print.enabled" }
291     ]
292   },
293
294   "CloudPrintSubmitEnabled": {
295     "os": ["win", "mac", "linux"],
296     "test_policy": { "CloudPrintSubmitEnabled": false },
297     "pref_mappings": [
298       { "pref": "cloud_print.submit_enabled" }
299     ]
300   },
301
302   "SafeBrowsingEnabled": {
303     "os": ["win", "linux", "mac", "chromeos"],
304     "can_be_recommended": true,
305     "test_policy": { "SafeBrowsingEnabled": false },
306     "pref_mappings": [
307       { "pref": "safebrowsing.enabled",
308         "indicator_tests": [
309           { "policy": { "SafeBrowsingEnabled": false } }
310         ]
311       }
312     ]
313   },
314
315   "ForceSafeSearch": {
316     "pref": "settings.force_safesearch",
317     "test_policy": { "ForceSafeSearch": true },
318     "settings_pages": [],
319     "os": ["win", "linux", "mac", "chromeos"]
320   },
321
322   "MetricsReportingEnabled": {
323     "os": ["win", "mac", "linux"],
324     "official_only": true,
325     "can_be_recommended": true,
326     "test_policy": { "MetricsReportingEnabled": false },
327     "pref_mappings": [
328       { "pref": "user_experience_metrics.reporting_enabled",
329         "local_state": true
330       }
331     ]
332   },
333
334   "PasswordManagerEnabled": {
335     "os": ["win", "linux", "mac", "chromeos"],
336     "can_be_recommended": true,
337     "test_policy": { "PasswordManagerEnabled": false },
338     "pref_mappings": [
339       { "pref": "profile.password_manager_enabled",
340         "indicator_tests": [
341           { "policy": { "PasswordManagerEnabled": false } }
342         ]
343       }
344     ]
345   },
346
347   "PasswordManagerAllowShowPasswords": {
348     "os": ["win", "linux", "mac", "chromeos"],
349     "test_policy": { "PasswordManagerAllowShowPasswords": false },
350     "pref_mappings": [
351       { "pref": "profile.password_manager_allow_show_passwords" }
352     ]
353   },
354
355   "AutoFillEnabled": {
356     "os": ["win", "linux", "mac", "chromeos"],
357     "can_be_recommended": true,
358     "test_policy": { "AutoFillEnabled": false },
359     "pref_mappings": [
360       { "pref": "autofill.enabled",
361         "indicator_tests": [
362           { "policy": { "AutoFillEnabled": false } }
363         ]
364       }
365     ]
366   },
367
368   "DisabledPlugins": {
369     "os": ["win", "linux", "mac", "chromeos"],
370     "test_policy": { "DisabledPlugins": ["Flash"] },
371     "pref_mappings": [
372       { "pref": "plugins.plugins_disabled" }
373     ]
374   },
375
376   "EnabledPlugins": {
377     "os": ["win", "linux", "mac", "chromeos"],
378     "test_policy": { "EnabledPlugins": ["Flash"] },
379     "pref_mappings": [
380       { "pref": "plugins.plugins_enabled" }
381     ]
382   },
383
384   "DisabledPluginsExceptions": {
385     "os": ["win", "linux", "mac", "chromeos"],
386     "test_policy": { "DisabledPluginsExceptions": ["Flash"] },
387     "pref_mappings": [
388       { "pref": "plugins.plugins_disabled_exceptions" }
389     ]
390   },
391
392   "DisablePluginFinder": {
393     "os": ["win", "linux", "mac", "chromeos"],
394     "test_policy": { "DisablePluginFinder": true },
395     "pref_mappings": [
396       { "pref": "plugins.disable_plugin_finder",
397         "local_state": true
398       }
399     ]
400   },
401
402   "SyncDisabled": {
403     "os": ["win", "linux", "mac", "chromeos"],
404     "test_policy": { "SyncDisabled": true },
405     "pref_mappings": [
406       { "pref": "sync.managed" }
407     ]
408   },
409
410   "SigninAllowed": {
411     "os": ["win", "linux", "mac"],
412     "test_policy": { "SigninAllowed": true },
413     "pref_mappings": [
414       { "pref": "signin.allowed" }
415     ]
416   },
417
418   "EnableWebBasedSignin": {
419     "os": ["win", "linux", "mac"],
420     "test_policy": { "EnableWebBasedSignin": false }
421   },
422
423   "UserDataDir": {
424     "note": "TODO(joaodasilva): To test that this policy works correctly, it would need to be set before the browser is launched. PolicyPrefsTest should be refactored to support this and a test for this policy added."
425   },
426
427   "DiskCacheDir": {
428     "os": ["win", "mac", "linux"],
429     "test_policy": { "DiskCacheDir": "${user_home}/test-cache" },
430     "pref_mappings": [
431       { "pref": "browser.disk_cache_dir" }
432     ]
433   },
434
435   "DiskCacheSize": {
436     "os": ["win", "mac", "linux"],
437     "test_policy": { "DiskCacheSize": 100 },
438     "pref_mappings": [
439       { "pref": "browser.disk_cache_size" }
440     ]
441   },
442
443   "MediaCacheSize": {
444     "os": ["win", "mac", "linux"],
445     "test_policy": { "MediaCacheSize": 200 },
446     "pref_mappings": [
447       { "pref": "browser.media_cache_size" }
448     ]
449   },
450
451   "DownloadDirectory.0": {
452     "os": ["win", "mac", "linux", "chromeos"],
453     "can_be_recommended": true,
454     "test_policy": { "DownloadDirectory": "${user_home}/test-downloads" },
455     "pref_mappings": [
456       { "pref": "download.default_directory",
457         "indicator_tests": [
458           { "policy": { "DownloadDirectory": "${user_home}/test-downloads" } }
459         ]
460       },
461       { "pref": "download.prompt_for_download",
462         "check_for_recommended" : false,
463         "indicator_tests": [
464           { "policy": { "DownloadDirectory": "${user_home}/test-downloads" } }
465         ]
466       }
467     ]
468   },
469
470   "DownloadDirectory.1": {
471     "os": ["chromeos"],
472     "test_policy": { "DownloadDirectory": "${google_drive}/downloads" },
473     "pref_mappings": [
474       { "pref": "gdata.disabled",
475         "indicator_tests": [
476           { "policy": { "DownloadDirectory": "${google_drive}/downloads" } }
477         ]
478       }
479     ]
480   },
481
482   "ClearSiteDataOnExit": {
483     "note": "This policy is retired, see http://crbug.com/133291."
484   },
485
486   "ProxyMode": {
487     "os": ["win", "mac", "linux"],
488     "test_policy": { "ProxyMode": "direct" },
489     "pref_mappings": [
490       { "pref": "proxy",
491         "indicator_tests": [
492           { "policy": { "ProxyMode": "direct" } }
493         ]
494       }
495     ]
496   },
497
498   "ProxyServerMode": {
499     "os": ["win", "mac", "linux"],
500     "test_policy": { "ProxyServerMode": 0 },
501     "pref_mappings": [
502       { "pref": "proxy",
503         "indicator_tests": [
504           { "policy": { "ProxyServerMode": 0 } }
505         ]
506       }
507     ]
508   },
509
510   "ProxyServer": {
511     "os": ["win", "mac", "linux"],
512     "test_policy": { "ProxyMode": "fixed_servers", "ProxyServer": "http://localhost:8080" },
513     "pref_mappings": [
514       { "pref": "proxy",
515         "indicator_tests": [
516           { "policy": { "ProxyMode": "fixed_servers", "ProxyServer": "http://localhost:8080" } }
517         ]
518       }
519     ]
520   },
521
522   "ProxyPacUrl": {
523     "os": ["win", "mac", "linux"],
524     "test_policy": { "ProxyMode": "pac_script", "ProxyPacUrl": "http://localhost:8080/proxy.pac" },
525     "pref_mappings": [
526       { "pref": "proxy",
527         "indicator_tests": [
528           { "policy": { "ProxyMode": "pac_script", "ProxyPacUrl": "http://localhost:8080/proxy.pac" } }
529         ]
530       }
531     ]
532   },
533
534   "ProxyBypassList": {
535     "os": ["win", "mac", "linux"],
536     "test_policy": { "ProxyMode": "fixed_servers", "ProxyServer": "http://localhost:8080", "ProxyBypassList": "localhost" },
537     "pref_mappings": [
538       { "pref": "proxy",
539         "indicator_tests": [
540           { "policy": { "ProxyMode": "fixed_servers", "ProxyServer": "http://localhost:8080", "ProxyBypassList": "localhost" } }
541         ]
542       }
543     ]
544   },
545
546   "ProxySettings": {
547     "os": ["linux", "win"],
548     "test_policy": { "ProxySettings": { "ProxyMode": "direct" } },
549     "pref_mappings": [
550       { "pref": "proxy",
551         "indicator_tests": [
552           { "policy": { "ProxySettings": { "ProxyMode": "direct" } } }
553         ]
554       }
555     ]
556   },
557
558   "EnableOriginBoundCerts": {
559     "note": "This policy is retired, see http://crbug.com/354749."
560   },
561
562   "DisableSSLRecordSplitting": {
563     "os": ["win", "linux", "mac", "chromeos"],
564     "test_policy": { "DisableSSLRecordSplitting": true },
565     "pref_mappings": [
566       { "pref": "ssl.ssl_record_splitting.disabled",
567         "local_state": true
568       }
569     ]
570   },
571
572   "EnableOnlineRevocationChecks": {
573     "os": ["win", "linux", "mac", "chromeos"],
574     "test_policy": { "EnableOnlineRevocationChecks": true },
575     "pref_mappings": [
576       { "pref": "ssl.rev_checking.enabled",
577         "local_state": true
578       }
579     ]
580   },
581
582   "RequireOnlineRevocationChecksForLocalAnchors": {
583     "os": ["win", "linux", "chromeos"],
584     "test_policy": { "RequireOnlineRevocationChecksForLocalAnchors": true },
585     "pref_mappings": [
586       { "pref": "ssl.rev_checking.required_for_local_anchors",
587         "local_state": true
588       }
589     ]
590   },
591
592   "AuthSchemes": {
593     "os": ["win", "linux", "mac", "chromeos"],
594     "test_policy": { "AuthSchemes": "AuthSchemes" },
595     "pref_mappings": [
596       { "pref": "auth.schemes",
597         "local_state": true
598       }
599     ]
600   },
601
602   "DisableAuthNegotiateCnameLookup": {
603     "os": ["win", "linux", "mac", "chromeos"],
604     "test_policy": { "DisableAuthNegotiateCnameLookup": true },
605     "pref_mappings": [
606       { "pref": "auth.disable_negotiate_cname_lookup",
607         "local_state": true
608       }
609     ]
610   },
611
612   "EnableAuthNegotiatePort": {
613     "os": ["win", "linux", "mac", "chromeos"],
614     "test_policy": { "EnableAuthNegotiatePort": true },
615     "pref_mappings": [
616       { "pref": "auth.enable_negotiate_port",
617         "local_state": true
618       }
619     ]
620   },
621
622   "AuthServerWhitelist": {
623     "os": ["win", "linux", "mac", "chromeos"],
624     "test_policy": { "AuthServerWhitelist": "localhost" },
625     "pref_mappings": [
626       { "pref": "auth.server_whitelist",
627         "local_state": true
628       }
629     ]
630   },
631
632   "AuthNegotiateDelegateWhitelist": {
633     "os": ["win", "linux", "mac", "chromeos"],
634     "test_policy": { "AuthNegotiateDelegateWhitelist": "localhost" },
635     "pref_mappings": [
636       { "pref": "auth.negotiate_delegate_whitelist",
637         "local_state": true
638       }
639     ]
640   },
641
642   "GSSAPILibraryName": {
643     "os": ["mac", "linux"],
644     "test_policy": { "GSSAPILibraryName": "libwhatever.so" },
645     "pref_mappings": [
646       { "pref": "auth.gssapi_library_name",
647         "local_state": true
648       }
649     ]
650   },
651
652   "AllowCrossOriginAuthPrompt": {
653     "os": ["win", "mac", "linux"],
654     "test_policy": { "AllowCrossOriginAuthPrompt": true },
655     "pref_mappings": [
656       { "pref": "auth.allow_cross_origin_prompt",
657         "local_state": true
658       }
659     ]
660   },
661
662   "ExtensionInstallBlacklist": {
663     "os": ["win", "linux", "mac", "chromeos"],
664     "test_policy": { "ExtensionInstallBlacklist": ["*"] },
665     "pref_mappings": [
666       { "pref": "extensions.install.denylist" }
667     ]
668   },
669
670   "ExtensionInstallWhitelist": {
671     "os": ["win", "linux", "mac", "chromeos"],
672     "test_policy": { "ExtensionInstallWhitelist": ["lcncmkcnkcdbbanbjakcencbaoegdjlp"] },
673     "pref_mappings": [
674       { "pref": "extensions.install.allowlist" }
675     ]
676   },
677
678   "ExtensionInstallForcelist": {
679     "os": ["win", "linux", "mac", "chromeos"],
680     "test_policy": { "ExtensionInstallForcelist": ["lcncmkcnkcdbbanbjakcencbaoegdjlp;https://clients2.google.com/service/update2/crx"] },
681     "pref_mappings": [
682       { "pref": "extensions.install.forcelist" }
683     ]
684   },
685
686   "ExtensionInstallSources": {
687     "os": ["win", "linux", "mac", "chromeos"],
688     "test_policy": { "ExtensionInstallSources": ["https://www.corp.monkey.net/*"] },
689     "pref_mappings": [
690       { "pref": "extensions.allowed_install_sites" }
691     ]
692   },
693
694   "ExtensionAllowedTypes": {
695     "os": ["win", "linux", "mac", "chromeos"],
696     "test_policy": { "ExtensionAllowedTypes": ["hosted_app"] },
697     "pref_mappings": [
698       { "pref": "extensions.allowed_types" }
699     ]
700   },
701
702   "ShowHomeButton": {
703     "os": ["win", "linux", "mac", "chromeos"],
704     "can_be_recommended": true,
705     "test_policy": { "ShowHomeButton": true },
706     "pref_mappings": [
707       { "pref": "browser.show_home_button",
708         "indicator_tests": [
709           { "policy": { "ShowHomeButton": true } }
710         ]
711       }
712     ]
713   },
714
715   "DeveloperToolsDisabled": {
716     "os": ["win", "linux", "mac", "chromeos"],
717     "test_policy": { "DeveloperToolsDisabled": true },
718     "pref_mappings": [
719       { "pref": "devtools.disabled" }
720     ]
721   },
722
723   "RestoreOnStartup": {
724     "os": ["win", "linux", "mac", "chromeos"],
725     "can_be_recommended": true,
726     "test_policy": { "RestoreOnStartup": 4 },
727     "pref_mappings": [
728       { "pref": "session.restore_on_startup",
729         "indicator_tests": [
730           { "policy": { "RestoreOnStartup": 1 },
731             "value": "1"},
732           { "policy": { "RestoreOnStartup": 4 },
733             "value": "4"},
734           { "policy": { "RestoreOnStartup": 5 },
735             "value": "5"}
736         ]
737       }
738     ]
739   },
740
741   "RestoreOnStartupURLs": {
742     "os": ["win", "linux", "mac", "chromeos"],
743     "can_be_recommended": true,
744     "test_policy": { "RestoreOnStartupURLs": ["chromium.org"] },
745     "pref_mappings": [
746       { "pref": "session.startup_urls",
747         "indicator_tests": [
748           { "policy": { "RestoreOnStartupURLs": ["chromium.org"] } }
749         ]
750       }
751     ]
752   },
753
754   "BlockThirdPartyCookies": {
755     "os": ["win", "linux", "mac", "chromeos"],
756     "can_be_recommended": true,
757     "test_policy": { "BlockThirdPartyCookies": true },
758     "pref_mappings": [
759       { "pref": "profile.block_third_party_cookies",
760         "indicator_tests": [
761           { "policy": { "BlockThirdPartyCookies": true } }
762         ]
763       }
764     ]
765   },
766
767   "DefaultSearchProviderEnabled": {
768     "os": ["win", "linux", "mac", "chromeos"],
769     "test_policy": { "DefaultSearchProviderEnabled": false },
770     "pref_mappings": [
771       { "pref": "default_search_provider_data.template_url_data",
772         "indicator_tests": [
773           { "policy": { "DefaultSearchProviderEnabled": false } },
774           { "policy": { "DefaultSearchProviderEnabled": true, "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google" } }
775         ]
776       }
777     ]
778   },
779
780   "DefaultSearchProviderName": {
781     "os": ["win", "linux", "mac", "chromeos"],
782     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderName": "google.com" },
783     "pref_mappings": [
784       { "pref": "default_search_provider_data.template_url_data" }
785     ]
786   },
787
788   "DefaultSearchProviderKeyword": {
789     "os": ["win", "linux", "mac", "chromeos"],
790     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google" },
791     "pref_mappings": [
792       { "pref": "default_search_provider_data.template_url_data" }
793     ]
794   },
795
796   "DefaultSearchProviderSearchURL": {
797     "os": ["win", "linux", "mac", "chromeos"],
798     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google" },
799     "pref_mappings": [
800       { "pref": "default_search_provider_data.template_url_data",
801         "indicator_selector": "[setting=search-engine]",
802         "indicator_tests": [
803           { "policy": { "DefaultSearchProviderEnabled": true, "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}" } }
804         ]
805       }
806     ]
807   },
808
809   "DefaultSearchProviderSuggestURL": {
810     "os": ["win", "linux", "mac", "chromeos"],
811     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderSuggestURL": "http://www.google.com/suggest?q={searchTerms}" },
812     "pref_mappings": [
813       { "pref": "default_search_provider_data.template_url_data" }
814     ]
815   },
816
817   "DefaultSearchProviderInstantURL": {
818     "os": ["win", "linux", "mac", "chromeos"],
819     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderInstantURL": "http://www.google.com/instant?q={searchTerms}" },
820     "pref_mappings": [
821       { "pref": "default_search_provider_data.template_url_data" }
822     ]
823   },
824
825   "DefaultSearchProviderNewTabURL": {
826     "os": ["win", "linux", "mac", "chromeos"],
827     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderNewTabURL": "http://www.google.com/newtab" },
828     "pref_mappings": [
829       { "pref": "default_search_provider_data.template_url_data" }
830     ]
831   },
832
833   "DefaultSearchProviderIconURL": {
834     "os": ["win", "linux", "mac", "chromeos"],
835     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderIconURL": "http://www.google.com/favicon.ico" },
836     "pref_mappings": [
837       { "pref": "default_search_provider_data.template_url_data" }
838     ]
839   },
840
841   "DefaultSearchProviderEncodings": {
842     "os": ["win", "linux", "mac", "chromeos"],
843     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderEncodings": ["UTF-8"] },
844     "pref_mappings": [
845       { "pref": "default_search_provider_data.template_url_data" }
846     ]
847   },
848
849   "DefaultSearchProviderAlternateURLs": {
850     "os": ["win", "linux", "mac", "chromeos"],
851     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderAlternateURLs": ["http://www.google.com/#q={searchTerms}", "http://www.google.com/search#q={searchTerms}"] },
852     "pref_mappings": [
853       { "pref": "default_search_provider_data.template_url_data" }
854     ]
855   },
856
857   "DefaultSearchProviderSearchTermsReplacementKey": {
858     "os": ["win", "linux", "mac", "chromeos"],
859     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderSearchTermsReplacementKey": "espv" },
860     "pref_mappings": [
861       { "pref": "default_search_provider_data.template_url_data" }
862     ]
863   },
864
865   "DefaultSearchProviderImageURL": {
866     "os": ["win", "linux", "mac", "chromeos"],
867     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderImageURL": "http://www.google.com/searchbyimage/upload" },
868     "pref_mappings": [
869       { "pref": "default_search_provider_data.template_url_data" }
870     ]
871   },
872
873   "DefaultSearchProviderSearchURLPostParams": {
874     "os": ["win", "linux", "mac", "chromeos"],
875     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderSearchURLPostParams": "" },
876     "pref_mappings": [
877       { "pref": "default_search_provider_data.template_url_data" }
878     ]
879   },
880
881   "DefaultSearchProviderSuggestURLPostParams": {
882     "os": ["win", "linux", "mac", "chromeos"],
883     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderSuggestURLPostParams": "" },
884     "pref_mappings": [
885       { "pref": "default_search_provider_data.template_url_data" }
886     ]
887   },
888
889   "DefaultSearchProviderInstantURLPostParams": {
890     "os": ["win", "linux", "mac", "chromeos"],
891     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderInstantURLPostParams": "" },
892     "pref_mappings": [
893       { "pref": "default_search_provider_data.template_url_data" }
894     ]
895   },
896
897   "DefaultSearchProviderImageURLPostParams": {
898     "os": ["win", "linux", "mac", "chromeos"],
899     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderImageURLPostParams": "image_content={imageThumbnail},image_url={imageURL},sbisrc={imageSearchSource}" },
900     "pref_mappings": [
901       { "pref": "default_search_provider_data.template_url_data" }
902     ]
903   },
904
905   "DefaultCookiesSetting": {
906     "os": ["win", "linux", "mac", "chromeos"],
907     "test_policy": { "DefaultCookiesSetting": 2 },
908     "pref_mappings": [
909       { "pref": "profile.managed_default_content_settings.cookies",
910         "indicator_selector": "[content-setting=cookies]",
911         "indicator_tests": [
912           { "policy": { "DefaultCookiesSetting": 1 },
913             "value": "allow"},
914           { "policy": { "DefaultCookiesSetting": 2 },
915             "value": "block"},
916           { "policy": { "DefaultCookiesSetting": 4 },
917             "value": "session"}
918         ]
919       }
920     ],
921
922     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
923   },
924
925   "DefaultImagesSetting": {
926     "os": ["win", "linux", "mac", "chromeos"],
927     "test_policy": { "DefaultImagesSetting": 2 },
928     "pref_mappings": [
929       { "pref": "profile.managed_default_content_settings.images",
930         "indicator_selector": "[content-setting=images]",
931         "indicator_tests": [
932           { "policy": { "DefaultImagesSetting": 1 },
933             "value": "allow"},
934           { "policy": { "DefaultImagesSetting": 2 },
935             "value": "block"}
936         ]
937       }
938     ],
939
940     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
941   },
942
943   "DefaultJavaScriptSetting": {
944     "os": ["win", "linux", "mac", "chromeos"],
945     "test_policy": { "DefaultJavaScriptSetting": 2 },
946     "pref_mappings": [
947       { "pref": "profile.managed_default_content_settings.javascript",
948         "indicator_selector": "[content-setting=javascript]",
949         "indicator_tests": [
950           { "policy": { "DefaultJavaScriptSetting": 1 },
951             "value": "allow"},
952           { "policy": { "DefaultJavaScriptSetting": 2 },
953             "value": "block"}
954         ]
955       }
956     ],
957
958     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
959   },
960
961   "DefaultPluginsSetting": {
962     "os": ["win", "linux", "mac", "chromeos"],
963     "test_policy": { "DefaultPluginsSetting": 2 },
964     "pref_mappings": [
965       { "pref": "profile.managed_default_content_settings.plugins",
966         "indicator_selector": "[content-setting=plugins]",
967         "indicator_tests": [
968           { "policy": { "DefaultPluginsSetting": 1 },
969             "value": "allow"},
970           { "policy": { "DefaultPluginsSetting": 2 },
971             "value": "block"},
972           { "policy": { "DefaultPluginsSetting": 3 },
973             "value": "ask"}
974         ]
975       }
976     ],
977
978     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
979   },
980
981   "DefaultPopupsSetting": {
982     "os": ["win", "linux", "mac", "chromeos"],
983     "test_policy": { "DefaultPopupsSetting": 2 },
984     "pref_mappings": [
985       { "pref": "profile.managed_default_content_settings.popups",
986         "indicator_selector": "[content-setting=popups]",
987         "indicator_tests": [
988           { "policy": { "DefaultPopupsSetting": 1 },
989             "value": "allow"},
990           { "policy": { "DefaultPopupsSetting": 2 },
991             "value": "block"}
992         ]
993       }
994     ],
995
996     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
997   },
998
999   "DefaultNotificationsSetting": {
1000     "os": ["win", "linux", "mac", "chromeos"],
1001     "test_policy": { "DefaultNotificationsSetting": 2 },
1002     "pref_mappings": [
1003       { "pref": "profile.managed_default_content_settings.notifications",
1004         "indicator_selector": "[content-setting=notifications]",
1005         "indicator_tests": [
1006           { "policy": { "DefaultNotificationsSetting": 1 },
1007             "value": "allow"},
1008           { "policy": { "DefaultNotificationsSetting": 2 },
1009             "value": "block"},
1010           { "policy": { "DefaultNotificationsSetting": 3 },
1011             "value": "ask"}
1012         ]
1013       }
1014     ],
1015
1016     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1017   },
1018
1019   "DefaultGeolocationSetting": {
1020     "os": ["win", "linux", "mac", "chromeos"],
1021     "test_policy": { "DefaultGeolocationSetting": 2 },
1022     "pref_mappings": [
1023       { "pref": "profile.managed_default_content_settings.geolocation",
1024         "indicator_selector": "[content-setting=location]",
1025         "indicator_tests": [
1026           { "policy": { "DefaultGeolocationSetting": 1 },
1027             "value": "allow"},
1028           { "policy": { "DefaultGeolocationSetting": 2 },
1029             "value": "block"},
1030           { "policy": { "DefaultGeolocationSetting": 3 },
1031             "value": "ask"}
1032         ]
1033       }
1034     ],
1035
1036     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1037   },
1038
1039   "DefaultMediaStreamSetting": {
1040     "os": ["win", "linux", "mac", "chromeos"],
1041     "test_policy": { "DefaultMediaStreamSetting": 2 },
1042     "pref_mappings": [
1043       { "pref": "profile.managed_default_content_settings.media_stream",
1044         "indicator_selector": "[content-setting=media-stream]",
1045         "indicator_tests": [
1046           { "policy": { "DefaultMediaStreamSetting": 2 },
1047             "value": "block"
1048           },
1049           { "policy": { "DefaultMediaStreamSetting": 3 },
1050             "value": "ask"
1051           }
1052         ]
1053       }
1054     ],
1055
1056     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1057   },
1058
1059   "AudioCaptureAllowed": {
1060     "os": ["win", "linux", "mac", "chromeos"],
1061     "test_policy": { "AudioCaptureAllowed": false },
1062     "pref_mappings": [
1063       { "pref": "hardware.audio_capture_enabled",
1064         "indicator_selector": "#media-indicator",
1065         "indicator_tests": [
1066           { "policy": { "AudioCaptureAllowed": false } }
1067         ]
1068       }
1069     ]
1070   },
1071
1072   "AudioCaptureAllowedUrls": {
1073     "os": ["win", "linux", "mac", "chromeos"],
1074     "test_policy": { "AudioCaptureAllowedUrls": ["[*.]google.com"] },
1075     "pref_mappings": [
1076       {
1077         "pref": "hardware.audio_capture_allowed_urls"
1078       }
1079     ]
1080   },
1081
1082   "VideoCaptureAllowed": {
1083     "os": ["win", "linux", "mac", "chromeos"],
1084     "test_policy": { "VideoCaptureAllowed": false },
1085     "pref_mappings": [
1086       { "pref": "hardware.video_capture_enabled",
1087         "indicator_selector": "#media-indicator",
1088         "indicator_tests": [
1089           { "policy": { "VideoCaptureAllowed": false } }
1090         ]
1091       }
1092     ]
1093   },
1094
1095   "VideoCaptureAllowedUrls": {
1096     "os": ["win", "linux", "mac", "chromeos"],
1097     "test_policy": { "VideoCaptureAllowedUrls": ["[*.]google.com"] },
1098     "pref_mappings": [
1099       {
1100         "pref": "hardware.video_capture_allowed_urls"
1101       }
1102     ]
1103   },
1104
1105   "AutoSelectCertificateForUrls": {
1106     "os": ["win", "linux", "mac", "chromeos"],
1107     "test_policy": { "AutoSelectCertificateForUrls": ["{'pattern':'https://example.com','filter':{'ISSUER':{'CN': 'issuer-name'}}}"] },
1108     "pref_mappings": [
1109       { "pref": "profile.managed_auto_select_certificate_for_urls" }
1110     ],
1111
1112     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1113   },
1114
1115   "CookiesAllowedForUrls": {
1116     "os": ["win", "linux", "mac", "chromeos"],
1117     "test_policy": { "CookiesAllowedForUrls": ["[*.]google.com"] },
1118     "pref_mappings": [
1119       { "pref": "profile.managed_cookies_allowed_for_urls",
1120         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=cookies]').click();",
1121         "indicator_selector": "[content-exception=cookies]",
1122         "indicator_tests": [
1123           { "policy": { "CookiesAllowedForUrls": ["[*.]google.com"] } }
1124         ]
1125       }
1126     ],
1127
1128     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1129   },
1130
1131   "CookiesBlockedForUrls": {
1132     "os": ["win", "linux", "mac", "chromeos"],
1133     "test_policy": { "CookiesBlockedForUrls": ["[*.]google.com"] },
1134     "pref_mappings": [
1135       { "pref": "profile.managed_cookies_blocked_for_urls",
1136         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=cookies]').click();",
1137         "indicator_selector": "[content-exception=cookies]",
1138         "indicator_tests": [
1139           { "policy": { "CookiesBlockedForUrls": ["[*.]google.com"] } }
1140         ]
1141       }
1142     ],
1143
1144     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1145   },
1146
1147   "CookiesSessionOnlyForUrls": {
1148     "os": ["win", "linux", "mac", "chromeos"],
1149     "test_policy": { "CookiesSessionOnlyForUrls": ["[*.]google.com"] },
1150     "pref_mappings": [
1151       { "pref": "profile.managed_cookies_sessiononly_for_urls",
1152         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=cookies]').click();",
1153         "indicator_selector": "[content-exception=cookies]",
1154         "indicator_tests": [
1155           { "policy": { "CookiesSessionOnlyForUrls": ["[*.]google.com"] } }
1156         ]
1157       }
1158     ],
1159
1160     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1161   },
1162
1163   "ImagesAllowedForUrls": {
1164     "os": ["win", "linux", "mac", "chromeos"],
1165     "test_policy": { "ImagesAllowedForUrls": ["[*.]google.com"] },
1166     "pref_mappings": [
1167       { "pref": "profile.managed_images_allowed_for_urls",
1168         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=images]').click();",
1169         "indicator_selector": "[content-exception=images]",
1170         "indicator_tests": [
1171           { "policy": { "ImagesAllowedForUrls": ["[*.]google.com"] } }
1172         ]
1173       }
1174     ],
1175
1176     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1177   },
1178
1179   "ImagesBlockedForUrls": {
1180     "os": ["win", "linux", "mac", "chromeos"],
1181     "test_policy": { "ImagesBlockedForUrls": ["[*.]google.com"] },
1182     "pref_mappings": [
1183       { "pref": "profile.managed_images_blocked_for_urls",
1184         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=images]').click();",
1185         "indicator_selector": "[content-exception=images]",
1186         "indicator_tests": [
1187           { "policy": { "ImagesBlockedForUrls": ["[*.]google.com"] } }
1188         ]
1189       }
1190     ],
1191
1192     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1193   },
1194
1195   "JavaScriptAllowedForUrls": {
1196     "os": ["win", "linux", "mac", "chromeos"],
1197     "test_policy": { "JavaScriptAllowedForUrls": ["[*.]google.com"] },
1198     "pref_mappings": [
1199       { "pref": "profile.managed_javascript_allowed_for_urls",
1200         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=javascript]').click();",
1201         "indicator_selector": "[content-exception=javascript]",
1202         "indicator_tests": [
1203           { "policy": { "JavaScriptAllowedForUrls": ["[*.]google.com"] } }
1204         ]
1205       }
1206     ],
1207
1208     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1209   },
1210
1211   "JavaScriptBlockedForUrls": {
1212     "os": ["win", "linux", "mac", "chromeos"],
1213     "test_policy": { "JavaScriptBlockedForUrls": ["[*.]google.com"] },
1214     "pref_mappings": [
1215       { "pref": "profile.managed_javascript_blocked_for_urls",
1216         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=javascript]').click();",
1217         "indicator_selector": "[content-exception=javascript]",
1218         "indicator_tests": [
1219           { "policy": { "JavaScriptBlockedForUrls": ["[*.]google.com"] } }
1220         ]
1221       }
1222     ],
1223
1224     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1225   },
1226
1227   "PluginsAllowedForUrls": {
1228     "os": ["win", "linux", "mac", "chromeos"],
1229     "test_policy": { "PluginsAllowedForUrls": ["[*.]google.com"] },
1230     "pref_mappings": [
1231       { "pref": "profile.managed_plugins_allowed_for_urls",
1232         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=plugins]').click();",
1233         "indicator_selector": "[content-exception=plugins]",
1234         "indicator_tests": [
1235           { "policy": { "PluginsAllowedForUrls": ["[*.]google.com"] } }
1236         ]
1237       }
1238     ],
1239
1240     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1241   },
1242
1243   "PluginsBlockedForUrls": {
1244     "os": ["win", "linux", "mac", "chromeos"],
1245     "test_policy": { "PluginsBlockedForUrls": ["[*.]google.com"] },
1246     "pref_mappings": [
1247       { "pref": "profile.managed_plugins_blocked_for_urls",
1248         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=plugins]').click();",
1249         "indicator_selector": "[content-exception=plugins]",
1250         "indicator_tests": [
1251           { "policy": { "PluginsBlockedForUrls": ["[*.]google.com"] } }
1252         ]
1253       }
1254     ],
1255
1256     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1257   },
1258
1259   "PopupsAllowedForUrls": {
1260     "os": ["win", "linux", "mac", "chromeos"],
1261     "test_policy": { "PopupsAllowedForUrls": ["[*.]google.com"] },
1262     "pref_mappings": [
1263       { "pref": "profile.managed_popups_allowed_for_urls",
1264         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=popups]').click();",
1265         "indicator_selector": "[content-exception=popups]",
1266         "indicator_tests": [
1267           { "policy": { "PopupsAllowedForUrls": ["[*.]google.com"] } }
1268         ]
1269       }
1270     ],
1271
1272     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1273   },
1274
1275   "PopupsBlockedForUrls": {
1276     "os": ["win", "linux", "mac", "chromeos"],
1277     "test_policy": { "PopupsBlockedForUrls": ["[*.]google.com"] },
1278     "pref_mappings": [
1279       { "pref": "profile.managed_popups_blocked_for_urls",
1280         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=popups]').click();",
1281         "indicator_selector": "[content-exception=popups]",
1282         "indicator_tests": [
1283           { "policy": { "PopupsBlockedForUrls": ["[*.]google.com"] } }
1284         ]
1285       }
1286     ],
1287
1288     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1289   },
1290
1291   "NotificationsAllowedForUrls": {
1292     "os": ["win", "linux", "mac", "chromeos"],
1293     "test_policy": { "NotificationsAllowedForUrls": ["[*.]google.com"] },
1294     "pref_mappings": [
1295       { "pref": "profile.managed_notifications_allowed_for_urls",
1296         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=notifications]').click();",
1297         "indicator_selector": "[content-exception=notifications]",
1298         "indicator_tests": [
1299           { "policy": { "NotificationsAllowedForUrls": ["[*.]google.com"] } }
1300         ]
1301       }
1302     ],
1303
1304     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1305   },
1306
1307   "NotificationsBlockedForUrls": {
1308     "os": ["win", "linux", "mac", "chromeos"],
1309     "test_policy": { "NotificationsBlockedForUrls": ["[*.]google.com"] },
1310     "pref_mappings": [
1311       { "pref": "profile.managed_notifications_blocked_for_urls",
1312         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=notifications]').click();",
1313         "indicator_selector": "[content-exception=notifications]",
1314         "indicator_tests": [
1315           { "policy": { "NotificationsBlockedForUrls": ["[*.]google.com"] } }
1316         ]
1317       }
1318     ],
1319
1320     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1321   },
1322
1323   "Disable3DAPIs": {
1324     "os": ["win", "linux", "mac", "chromeos"],
1325     "test_policy": { "Disable3DAPIs": true },
1326     "pref_mappings": [
1327       { "pref": "disable_3d_apis" }
1328     ]
1329   },
1330
1331   "InstantEnabled": {
1332   },
1333
1334   "TranslateEnabled": {
1335     "os": ["win", "linux", "mac", "chromeos"],
1336     "can_be_recommended": true,
1337     "test_policy": { "TranslateEnabled": false },
1338     "pref_mappings": [
1339       { "pref": "translate.enabled",
1340         "indicator_tests": [
1341           { "policy": { "TranslateEnabled": true } }
1342         ]
1343       }
1344     ]
1345   },
1346
1347   "AllowOutdatedPlugins": {
1348     "os": ["win", "linux", "mac", "chromeos"],
1349     "test_policy": { "AllowOutdatedPlugins": true },
1350     "pref_mappings": [
1351       { "pref": "plugins.allow_outdated" }
1352     ]
1353   },
1354
1355   "AlwaysAuthorizePlugins": {
1356     "os": ["win", "linux", "mac", "chromeos"],
1357     "test_policy": { "AlwaysAuthorizePlugins": true },
1358     "pref_mappings": [
1359       { "pref": "plugins.always_authorize" }
1360     ]
1361   },
1362
1363   "BookmarkBarEnabled": {
1364     "os": ["win", "linux", "mac", "chromeos"],
1365     "can_be_recommended": true,
1366     "test_policy": { "BookmarkBarEnabled": true },
1367     "pref_mappings": [
1368       { "pref": "bookmark_bar.show_on_all_tabs",
1369         "indicator_tests": [
1370           { "policy": { "BookmarkBarEnabled": true } }
1371         ]
1372       }
1373     ]
1374   },
1375
1376   "EditBookmarksEnabled": {
1377     "os": ["win", "linux", "mac", "chromeos"],
1378     "test_policy": { "EditBookmarksEnabled": false },
1379     "pref_mappings": [
1380       { "pref": "bookmarks.editing_enabled" }
1381     ]
1382   },
1383
1384   "ShowAppsShortcutInBookmarkBar": {
1385     "os": ["win", "linux", "mac"],
1386     "test_policy": { "ShowAppsShortcutInBookmarkBar": false },
1387     "pref_mappings": [
1388       { "pref": "bookmark_bar.show_apps_shortcut" }
1389     ]
1390   },
1391
1392   "AllowFileSelectionDialogs": {
1393     "os": ["win", "mac", "linux"],
1394     "test_policy": { "AllowFileSelectionDialogs": false },
1395     "pref_mappings": [
1396       { "pref": "select_file_dialogs.allowed",
1397         "local_state": true
1398       },
1399       { "pref": "download.prompt_for_download",
1400         "indicator_tests": [
1401           { "policy": { "AllowFileSelectionDialogs": false } }
1402         ]
1403       }
1404     ]
1405   },
1406
1407   "ImportBookmarks": {
1408     "os": ["win", "mac", "linux"],
1409     "can_be_recommended": true,
1410     "test_policy": { "ImportBookmarks": false },
1411     "pref_mappings": [
1412       { "pref": "import_bookmarks",
1413         "indicator_tests": [
1414           { "policy": { "ImportBookmarks": false } }
1415         ]
1416       }
1417     ]
1418   },
1419
1420   "ImportHistory": {
1421     "os": ["win", "mac", "linux"],
1422     "can_be_recommended": true,
1423     "test_policy": { "ImportHistory": false },
1424     "pref_mappings": [
1425       { "pref": "import_history",
1426         "indicator_tests": [
1427           { "policy": { "ImportHistory": false } }
1428         ]
1429       }
1430     ]
1431   },
1432
1433   "ImportHomepage": {
1434     "os": ["win", "mac", "linux"],
1435     "test_policy": { "ImportHomepage": false },
1436     "pref_mappings": [
1437       { "pref": "import_home_page" }
1438     ]
1439   },
1440
1441   "ImportSearchEngine": {
1442     "os": ["win", "mac", "linux"],
1443     "can_be_recommended": true,
1444     "test_policy": { "ImportSearchEngine": false },
1445     "pref_mappings": [
1446       { "pref": "import_search_engine",
1447         "indicator_tests": [
1448           { "policy": { "ImportSearchEngine": false } }
1449         ]
1450       }
1451     ]
1452   },
1453
1454   "ImportSavedPasswords": {
1455     "os": ["win", "mac", "linux"],
1456     "can_be_recommended": true,
1457     "test_policy": { "ImportSavedPasswords": false },
1458     "pref_mappings": [
1459       { "pref": "import_saved_passwords",
1460         "indicator_tests": [
1461           { "policy": { "ImportSavedPasswords": false } }
1462         ]
1463       }
1464     ]
1465   },
1466
1467   "ImportAutofillFormData": {
1468     "os": ["win", "mac", "linux"],
1469     "can_be_recommended": true,
1470     "test_policy": { "ImportAutofillFormData": false },
1471     "pref_mappings": [
1472       { "pref": "import_autofill_form_data",
1473         "indicator_tests": [
1474           { "policy": { "ImportAutofillFormData": false } }
1475         ]
1476       }
1477     ]
1478   },
1479
1480   "MaxConnectionsPerProxy": {
1481     "os": ["win", "linux", "mac", "chromeos"],
1482     "test_policy": { "MaxConnectionsPerProxy": 16 },
1483     "pref_mappings": [
1484       { "pref": "net.max_connections_per_proxy",
1485         "local_state": true
1486       }
1487     ]
1488   },
1489
1490   "HideWebStorePromo": {
1491   },
1492
1493   "URLBlacklist": {
1494     "os": ["win", "linux", "mac", "chromeos"],
1495     "test_policy": { "URLBlacklist": ["google.com"] },
1496     "pref_mappings": [
1497       { "pref": "policy.url_blacklist" }
1498     ]
1499   },
1500
1501   "URLWhitelist": {
1502     "os": ["win", "linux", "mac", "chromeos"],
1503     "test_policy": { "URLWhitelist": ["google.com"] },
1504     "pref_mappings": [
1505       { "pref": "policy.url_whitelist" }
1506     ]
1507   },
1508
1509   "EnterpriseWebStoreURL": {
1510     "note": "This policy is retired, see http://crbug.com/178938."
1511   },
1512
1513   "EnterpriseWebStoreName": {
1514     "note": "This policy is retired, see http://crbug.com/178938."
1515   },
1516
1517   "EnableMemoryInfo": {
1518     "note": "This policy is retired, see http://crbug.com/350339."
1519   },
1520
1521   "DisablePrintPreview": {
1522     "os": ["win", "mac", "linux"],
1523     "test_policy": { "DisablePrintPreview": false },
1524     "pref_mappings": [
1525       { "pref": "printing.print_preview_disabled" }
1526     ]
1527   },
1528
1529   "BackgroundModeEnabled": {
1530     "os": ["win", "linux"],
1531     "can_be_recommended": true,
1532     "test_policy": { "BackgroundModeEnabled": false },
1533     "pref_mappings": [
1534       { "pref": "background_mode.enabled",
1535         "local_state": true,
1536         "indicator_tests": [
1537           { "policy": { "BackgroundModeEnabled": false } }
1538         ]
1539       }
1540     ]
1541   },
1542
1543   "RestrictSigninToPattern": {
1544     "os": ["win", "mac", "linux"],
1545     "test_policy": { "RestrictSigninToPattern": ".*@google.com" },
1546     "pref_mappings": [
1547       { "pref": "google.services.username_pattern",
1548         "local_state": true
1549       }
1550     ]
1551   },
1552
1553   "DisableSafeBrowsingProceedAnyway": {
1554     "os": ["win", "linux", "mac", "chromeos"],
1555     "test_policy": { "DisableSafeBrowsingProceedAnyway": true },
1556     "pref_mappings": [
1557       { "pref": "safebrowsing.proceed_anyway_disabled" }
1558     ]
1559   },
1560
1561   "SpellCheckServiceEnabled": {
1562     "os": ["win", "linux", "mac", "chromeos"],
1563     "official_only": true,
1564     "can_be_recommended": true,
1565     "test_policy": { "SpellCheckServiceEnabled": false },
1566     "pref_mappings": [
1567       { "pref": "spellcheck.use_spelling_service",
1568         "indicator_tests": [
1569           { "policy": { "SpellCheckServiceEnabled": false } }
1570         ]
1571       }
1572     ]
1573   },
1574
1575   "DisableScreenshots": {
1576     "os": ["win", "linux", "mac", "chromeos"],
1577     "test_policy": { "DisableScreenshots": true },
1578     "pref_mappings": [
1579       { "pref": "disable_screenshots" }
1580     ]
1581   },
1582
1583   "BuiltInDnsClientEnabled": {
1584     "os": ["win", "linux", "mac"],
1585     "test_policy": { "BuiltInDnsClientEnabled": true },
1586     "pref_mappings": [
1587       { "pref": "async_dns.enabled",
1588         "local_state": true
1589       }
1590     ]
1591   },
1592
1593   "WPADQuickCheckEnabled": {
1594     "os": ["win", "linux", "mac", "chromeos"],
1595     "test_policy": { "WPADQuickCheckEnabled": true },
1596     "pref_mappings": [
1597       { "pref": "proxy.quick_check_enabled",
1598         "local_state": true
1599       }
1600     ]
1601   },
1602
1603   "RegisteredProtocolHandlers": {
1604     "os": ["win", "linux", "mac", "chromeos"],
1605     "can_be_recommended": true,
1606     "test_policy": { "RegisteredProtocolHandlers": {"protocol": "test", "url": "http://example.com/%s", "default": "true"} },
1607     "pref_mappings": [
1608       { "pref": "custom_handlers.policy.registered_protocol_handlers",
1609         "check_for_mandatory": false
1610       }
1611     ]
1612   },
1613
1614   "HideWebStoreIcon": {
1615     "os": ["win", "linux", "mac", "chromeos"],
1616     "test_policy": { "HideWebStoreIcon": true },
1617     "pref_mappings": [
1618       { "pref": "hide_web_store_icon" }
1619     ]
1620   },
1621
1622   "VariationsRestrictParameter": {
1623     "test_policy": { "VariationsRestrictParameter": "restricted" },
1624     "pref_mappings": [
1625       { "pref": "variations_restrict_parameter",
1626         "local_state": true
1627       }
1628     ]
1629   },
1630
1631   "DataCompressionProxyEnabled": {
1632     "os": ["android"],
1633     "test_policy": { "DataCompressionProxyEnabled": false },
1634     "pref_mappings": [
1635       { "pref": "spdy_proxy.enabled" }
1636     ]
1637   },
1638
1639   "ForceEphemeralProfiles": {
1640   },
1641
1642   "UserAvatarImage": {
1643     "os": ["chromeos"],
1644     "test_policy": {
1645       "UserAvatarImage": {
1646         "url": "http://localhost/",
1647         "hash": "deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef"
1648       }
1649     },
1650     "indicator_selector": "#account-picture-indicator"
1651   },
1652
1653   "WallpaperImage": {
1654     "os": ["chromeos"],
1655     "test_policy": {
1656       "WallpaperImage": {
1657         "url": "http://localhost/",
1658         "hash": "baddecafbaddecafbaddecafbaddecafbaddecafbaddecafbaddecafbaddecaf"
1659       }
1660     },
1661     "indicator_selector": "#wallpaper-indicator"
1662   },
1663
1664   "BrowserGuestModeEnabled": {
1665     "os": ["win", "linux", "mac"],
1666     "test_policy": { "BrowserGuestModeEnabled": true },
1667     "pref_mappings": [
1668       { "pref": "profile.browser_guest_enabled",
1669         "local_state": true
1670       }
1671     ]
1672   },
1673
1674   "BrowserAddPersonEnabled": {
1675     "os": ["win", "linux", "mac"],
1676     "test_policy": { "BrowserAddPersonEnabled": true },
1677     "pref_mappings": [
1678       { "pref": "profile.add_person_enabled",
1679         "local_state": true
1680       }
1681     ]
1682   },
1683
1684   "----- Chrome OS policies ------------------------------------------------": {},
1685
1686   "ChromeOsLockOnIdleSuspend": {
1687     "os": ["chromeos"],
1688     "can_be_recommended": true,
1689     "test_policy": { "ChromeOsLockOnIdleSuspend": true },
1690     "pref_mappings": [
1691       { "pref": "settings.enable_screen_lock",
1692         "indicator_tests": [
1693           { "policy": { "ChromeOsLockOnIdleSuspend": true } }
1694         ]
1695       }
1696     ]
1697   },
1698
1699   "PolicyRefreshRate": {
1700     "os": ["chromeos"],
1701     "test_policy": { "PolicyRefreshRate": 300000 },
1702     "pref_mappings": [
1703       { "pref": "policy.user_refresh_rate",
1704         "local_state": true
1705       }
1706     ]
1707   },
1708
1709   "MaxInvalidationFetchDelay": {
1710     "os": ["win", "linux", "mac", "chromeos"],
1711     "test_policy": { "PolicyRefreshRate": 15000 },
1712     "pref_mappings": []
1713   },
1714
1715   "OpenNetworkConfiguration": {
1716   },
1717
1718   "SAMLOfflineSigninTimeLimit": {
1719     "os": ["chromeos"],
1720     "test_policy": { "SAMLOfflineSigninTimeLimit": 0 },
1721     "pref_mappings": [
1722       { "pref": "saml.offline_signin_time_limit" }
1723     ]
1724   },
1725
1726   "DriveDisabled": {
1727     "os": ["chromeos"],
1728     "test_policy": { "DriveDisabled": true },
1729     "pref_mappings": [
1730       { "pref": "gdata.disabled",
1731         "indicator_tests": [
1732           { "policy": { "DriveDisabled": true } }
1733         ]
1734       }
1735     ]
1736   },
1737
1738   "DriveDisabledOverCellular": {
1739     "os": ["chromeos"],
1740     "test_policy": { "DriveDisabledOverCellular": true },
1741     "pref_mappings": [
1742       { "pref": "gdata.cellular.disabled" }
1743     ]
1744   },
1745
1746   "PinnedLauncherApps": {
1747     "os": ["chromeos"],
1748     "can_be_recommended": true,
1749     "test_policy": { "PinnedLauncherApps": [] },
1750     "pref_mappings": [
1751       { "pref": "pinned_launcher_apps" }
1752     ]
1753   },
1754
1755   "ExternalStorageDisabled": {
1756     "os": ["chromeos"],
1757     "test_policy": { "ExternalStorageDisabled": true },
1758     "pref_mappings": [
1759       { "pref": "hardware.external_storage_disabled" }
1760     ]
1761   },
1762
1763   "AudioOutputAllowed": {
1764     "os": ["chromeos"],
1765     "test_policy": { "AudioOutputAllowed": true },
1766     "pref_mappings": [
1767       { "pref": "hardware.audio_output_enabled",
1768         "local_state": true }
1769     ]
1770   },
1771
1772   "AudioCaptureAllowed": {
1773     "os": ["chromeos"],
1774     "test_policy": { "AudioCaptureAllowed": true },
1775     "pref_mappings": [
1776       { "pref": "hardware.audio_capture_enabled",
1777         "local_state": true }
1778     ]
1779   },
1780
1781   "ShowLogoutButtonInTray": {
1782     "os": ["chromeos"],
1783     "test_policy": { "ShowLogoutButtonInTray": true },
1784     "pref_mappings": [
1785       { "pref": "show_logout_button_in_tray" }
1786     ]
1787   },
1788
1789   "ShelfAutoHideBehavior": {
1790     "os": ["chromeos"],
1791     "test_policy": { "ShelfAutoHideBehavior": "Always" },
1792     "pref_mappings": [
1793       { "pref": "auto_hide_behavior_local" }
1794     ]
1795   },
1796
1797   "UserDisplayName": {
1798     "os": ["chromeos"]
1799   },
1800
1801   "SessionLengthLimit": {
1802     "os": ["chromeos"],
1803     "test_policy": { "SessionLengthLimit": 3600000 },
1804     "pref_mappings": [
1805       { "pref": "session.length_limit",
1806         "local_state": true }
1807     ]
1808   },
1809
1810   "ScreenDimDelayAC": {
1811     "os": ["chromeos"],
1812     "test_policy": { "ScreenDimDelayAC": 420000 },
1813     "pref_mappings": [
1814       { "pref": "power.ac_screen_dim_delay_ms" }
1815     ]
1816   },
1817
1818   "ScreenOffDelayAC": {
1819     "os": ["chromeos"],
1820     "test_policy": { "ScreenOffDelayAC": 480000 },
1821     "pref_mappings": [
1822       { "pref": "power.ac_screen_off_delay_ms" }
1823     ]
1824   },
1825
1826   "ScreenLockDelayAC": {
1827     "os": ["chromeos"],
1828     "test_policy": { "ScreenLockDelayAC": 600000 },
1829     "pref_mappings": [
1830       { "pref": "power.ac_screen_lock_delay_ms" }
1831     ]
1832   },
1833
1834   "IdleWarningDelayAC": {
1835     "os": ["chromeos"],
1836     "test_policy": { "IdleWarningDelayAC": 1800000 },
1837     "pref_mappings": [
1838       { "pref": "power.ac_idle_warning_delay_ms" }
1839     ]
1840   },
1841
1842   "IdleDelayAC": {
1843     "os": ["chromeos"],
1844     "test_policy": { "IdleDelayAC": 1800000 },
1845     "pref_mappings": [
1846       { "pref": "power.ac_idle_delay_ms" }
1847     ]
1848   },
1849
1850   "ScreenDimDelayBattery": {
1851     "os": ["chromeos"],
1852     "test_policy": { "ScreenDimDelayBattery": 300000 },
1853     "pref_mappings": [
1854       { "pref": "power.battery_screen_dim_delay_ms" }
1855     ]
1856   },
1857
1858   "ScreenOffDelayBattery": {
1859     "os": ["chromeos"],
1860     "test_policy": { "ScreenOffDelayBattery": 360000 },
1861     "pref_mappings": [
1862       { "pref": "power.battery_screen_off_delay_ms" }
1863     ]
1864   },
1865
1866   "ScreenLockDelayBattery": {
1867     "os": ["chromeos"],
1868     "test_policy": { "ScreenLockDelayBattery": 600000 },
1869     "pref_mappings": [
1870       { "pref": "power.battery_screen_lock_delay_ms"  }
1871     ]
1872   },
1873
1874   "IdleWarningDelayBattery": {
1875     "os": ["chromeos"],
1876     "test_policy": { "IdleWarningDelayBattery": 600000 },
1877     "pref_mappings": [
1878       { "pref": "power.battery_idle_warning_delay_ms" }
1879     ]
1880   },
1881
1882   "IdleDelayBattery": {
1883     "os": ["chromeos"],
1884     "test_policy": { "IdleDelayBattery": 600000 },
1885     "pref_mappings": [
1886       { "pref": "power.battery_idle_delay_ms" }
1887     ]
1888   },
1889
1890   "IdleAction": {
1891     "os": ["chromeos"],
1892     "test_policy": { "IdleAction": 0 },
1893     "pref_mappings": [
1894       { "pref": "power.ac_idle_action" },
1895       { "pref": "power.battery_idle_action" }
1896     ]
1897   },
1898
1899   "IdleActionAC": {
1900     "os": ["chromeos"],
1901     "test_policy": { "IdleActionAC": 0 },
1902     "pref_mappings": [
1903       { "pref": "power.ac_idle_action" }
1904     ]
1905   },
1906
1907   "IdleActionBattery": {
1908     "os": ["chromeos"],
1909     "test_policy": { "IdleActionBattery": 0 },
1910     "pref_mappings": [
1911       { "pref": "power.battery_idle_action" }
1912     ]
1913   },
1914
1915   "LidCloseAction": {
1916     "os": ["chromeos"],
1917     "test_policy": { "LidCloseAction": 0 },
1918     "pref_mappings": [
1919       { "pref": "power.lid_closed_action" }
1920     ]
1921   },
1922
1923   "PowerManagementUsesAudioActivity": {
1924     "os": ["chromeos"],
1925     "test_policy": { "PowerManagementUsesAudioActivity": true },
1926     "pref_mappings": [
1927       { "pref": "power.use_audio_activity" }
1928     ]
1929   },
1930
1931   "PowerManagementUsesVideoActivity": {
1932     "os": ["chromeos"],
1933     "test_policy": { "PowerManagementUsesVideoActivity": true },
1934     "pref_mappings": [
1935       { "pref": "power.use_video_activity" }
1936     ]
1937   },
1938
1939   "PresentationIdleDelayScale": {
1940   },
1941
1942   "PresentationScreenDimDelayScale": {
1943     "os": ["chromeos"],
1944     "test_policy": { "PresentationScreenDimDelayScale": 200 },
1945     "pref_mappings": [
1946       { "pref": "power.presentation_screen_dim_delay_factor" }
1947     ]
1948   },
1949
1950   "AllowScreenWakeLocks": {
1951     "os": ["chromeos"],
1952     "test_policy": { "AllowScreenWakeLocks": false },
1953     "pref_mappings": [
1954       { "pref": "power.allow_screen_wake_locks" }
1955     ]
1956   },
1957
1958   "UserActivityScreenDimDelayScale": {
1959     "os": ["chromeos"],
1960     "test_policy": { "UserActivityScreenDimDelayScale": 200 },
1961     "pref_mappings": [
1962       { "pref": "power.user_activity_screen_dim_delay_factor" }
1963     ]
1964   },
1965
1966   "WaitForInitialUserActivity": {
1967     "os": ["chromeos"],
1968     "test_policy": { "WaitForInitialUserActivity": true },
1969     "pref_mappings": [
1970       { "pref": "session.wait_for_initial_user_activity",
1971         "local_state": true },
1972       { "pref": "power.wait_for_initial_user_activity" }
1973     ]
1974   },
1975
1976   "PowerManagementIdleSettings": {
1977     "os": ["chromeos"],
1978     "test_policy": { "PowerManagementIdleSettings" : { "AC": { "Delays": { "ScreenDim": 5000, "ScreenOff": 7000, "IdleWarning": 8000, "Idle": 9000 }, "IdleAction": "Logout" }, "Battery": { "Delays": { "ScreenDim": 1000, "ScreenOff": 3000, "IdleWarning": 4000, "Idle": 5000 }, "IdleAction": "Logout"} } },
1979     "pref_mappings": [
1980       { "pref": "power.ac_screen_dim_delay_ms" },
1981       { "pref": "power.ac_screen_off_delay_ms" },
1982       { "pref": "power.ac_idle_warning_delay_ms" },
1983       { "pref": "power.ac_idle_delay_ms" },
1984       { "pref": "power.battery_screen_dim_delay_ms" },
1985       { "pref": "power.battery_screen_off_delay_ms" },
1986       { "pref": "power.battery_idle_warning_delay_ms" },
1987       { "pref": "power.battery_idle_delay_ms" }
1988     ]
1989   },
1990
1991   "ScreenLockDelays": {
1992     "os": ["chromeos"],
1993     "test_policy": { "ScreenLockDelays": { "AC": 6000, "Battery": 2000 } },
1994     "pref_mappings": [
1995       { "pref": "power.ac_screen_lock_delay_ms" },
1996       { "pref": "power.battery_screen_lock_delay_ms" }
1997     ]
1998   },
1999
2000   "TermsOfServiceURL": {
2001     "os": ["chromeos"],
2002     "test_policy": { "TermsOfServiceURL": "http://www.example.com/terms_of_service.txt" },
2003     "pref_mappings": [
2004       { "pref": "terms_of_service.url" }
2005     ]
2006   },
2007
2008   "ShowAccessibilityOptionsInSystemTrayMenu": {
2009     "os": ["chromeos"],
2010     "test_policy": { "ShowAccessibilityOptionsInSystemTrayMenu": true },
2011     "pref_mappings": [
2012       { "pref": "settings.a11y.enable_menu",
2013         "indicator_tests": [
2014           { "policy": { "ShowAccessibilityOptionsInSystemTrayMenu": true } }
2015         ]
2016       }
2017     ]
2018   },
2019
2020   "LargeCursorEnabled": {
2021     "os": ["chromeos"],
2022     "test_policy": { "LargeCursorEnabled": true },
2023     "pref_mappings": [
2024       { "pref": "settings.a11y.large_cursor_enabled",
2025         "indicator_tests": [
2026           { "policy": { "LargeCursorEnabled": true } }
2027         ]
2028       }
2029     ]
2030   },
2031
2032   "SpokenFeedbackEnabled": {
2033     "os": ["chromeos"],
2034     "test_policy": { "SpokenFeedbackEnabled": true },
2035     "pref_mappings": [
2036       { "pref": "settings.accessibility",
2037         "indicator_tests": [
2038           { "policy": { "SpokenFeedbackEnabled": true } }
2039         ]
2040       }
2041     ]
2042   },
2043
2044   "HighContrastEnabled": {
2045     "os": ["chromeos"],
2046     "test_policy": { "HighContrastEnabled": true },
2047     "pref_mappings": [
2048       { "pref": "settings.a11y.high_contrast_enabled",
2049         "indicator_tests": [
2050           { "policy": { "HighContrastEnabled": true } }
2051         ]
2052       }
2053     ]
2054   },
2055
2056   "ScreenMagnifierType": {
2057     "os": ["chromeos"],
2058     "test_policy": { "ScreenMagnifierType": 1 },
2059     "pref_mappings": [
2060       { "pref": "settings.a11y.screen_magnifier",
2061         "indicator_tests": [
2062           { "policy": { "ScreenMagnifierType": 1 } }
2063         ]
2064       },
2065       { "pref": "settings.a11y.screen_magnifier_type2" }
2066     ]
2067   },
2068
2069   "VirtualKeyboardEnabled": {
2070     "os": ["chromeos"],
2071     "test_policy": { "VirtualKeyboardEnabled": true },
2072     "pref_mappings": [
2073       { "pref": "settings.a11y.virtual_keyboard",
2074         "indicator_tests": [
2075           { "policy": { "VirtualKeyboardEnabled": true } }
2076         ]
2077       }
2078     ]
2079   },
2080
2081   "KeyboardDefaultToFunctionKeys": {
2082     "os": ["chromeos"],
2083     "test_policy": { "KeyboardDefaultToFunctionKeys": true },
2084     "pref_mappings": [
2085       { "pref": "settings.language.send_function_keys",
2086         "indicator_tests": [
2087           { "policy": { "KeyboardDefaultToFunctionKeys": true } }
2088         ]
2089       }
2090     ]
2091   },
2092
2093   "AttestationEnabledForUser": {
2094     "os": ["chromeos"],
2095     "test_policy": { "AttestationEnabledForUser": true },
2096     "pref_mappings": [
2097       { "pref": "attestation.enabled" }
2098     ]
2099   },
2100
2101   "AttestationExtensionWhitelist": {
2102     "os": ["chromeos"],
2103     "test_policy": { "AttestationExtensionWhitelist": ["test_ext_id1", "test_ext_id2"] },
2104     "pref_mappings": [
2105       { "pref": "attestation.extension_whitelist" }
2106     ]
2107   },
2108
2109   "ContentPackDefaultFilteringBehavior": {
2110   },
2111
2112   "ContentPackManualBehaviorHosts": {
2113   },
2114
2115   "ContentPackManualBehaviorURLs": {
2116   },
2117
2118   "ManagedBookmarks": {
2119   },
2120
2121   "FullscreenAllowed": {
2122     "os": ["win", "linux", "chromeos"],
2123     "test_policy": { "FullscreenAllowed": false },
2124     "pref_mappings": [
2125       { "pref": "fullscreen.allowed" },
2126       { "pref": "apps.fullscreen.allowed" }
2127     ]
2128   },
2129
2130   "ChromeOsMultiProfileUserBehavior": {
2131     "os": ["chromeos"],
2132     "test_policy": { "ChromeOsMultiProfileUserBehavior": "unrestricted" },
2133     "pref_mappings": [
2134       { "pref": "settings.multiprofile_user_behavior" }
2135     ]
2136   },
2137
2138   "NativeMessagingBlacklist": {
2139     "os": ["win", "linux", "mac"],
2140     "test_policy": { "NativeMessagingBlacklist": ["*"] },
2141     "pref_mappings": [
2142       { "pref": "native_messaging.blacklist" }
2143     ]
2144   },
2145
2146   "NativeMessagingWhitelist": {
2147     "os": ["win", "linux", "mac"],
2148     "test_policy": { "NativeMessagingWhitelist": ["native.messaging.host.name"] },
2149     "pref_mappings": [
2150       { "pref": "native_messaging.whitelist" }
2151     ]
2152   },
2153
2154   "NativeMessagingUserLevelHosts": {
2155     "os": ["win", "linux", "mac"],
2156     "test_policy": { "NativeMessagingUserLevelHosts": false },
2157     "pref_mappings": [
2158       { "pref": "native_messaging.user_level_hosts" }
2159     ]
2160   },
2161
2162   "EnableDeprecatedWebPlatformFeatures": {
2163     "os": ["win", "linux", "mac", "chromeos"],
2164     "test_policy": {
2165       "EnableDeprecatedWebPlatformFeatures": [
2166         "ShowModalDialog_EffectiveUntil20150430"
2167       ]
2168     },
2169     "pref_mappings": [
2170       { "pref": "enable_deprecated_web_platform_features" }
2171     ]
2172   },
2173
2174   "TouchVirtualKeyboardEnabled": {
2175     "os": ["chromeos"],
2176     "test_policy": { "TouchVirtualKeyboardEnabled": false },
2177     "pref_mappings": [
2178       { "pref": "ui.touch_virtual_keyboard_enabled" }
2179     ]
2180   },
2181
2182   "EasyUnlockAllowed": {
2183     "os": ["chromeos"],
2184     "test_policy": { "EasyUnlockAllowed": false },
2185     "pref_mappings": [
2186       { "pref": "easy_unlock.allowed" }
2187     ]
2188   },
2189
2190   "SessionLocales": {
2191     "os": ["chromeos"],
2192     "can_be_recommended": true
2193   },
2194
2195   "----- Chrome OS device policies ---------------------------------------": {},
2196
2197   "DevicePolicyRefreshRate": {
2198     "os": ["chromeos"],
2199     "test_policy": { "DevicePolicyRefreshRate": 300000 },
2200     "pref_mappings": [
2201       { "pref": "policy.device_refresh_rate",
2202         "local_state": true }
2203     ]
2204   },
2205
2206   "ChromeOsReleaseChannel": {
2207   },
2208
2209   "ChromeOsReleaseChannelDelegated": {
2210   },
2211
2212   "DeviceOpenNetworkConfiguration": {
2213   },
2214
2215   "ReportDeviceVersionInfo": {
2216   },
2217
2218   "ReportDeviceActivityTimes": {
2219   },
2220
2221   "ReportDeviceBootMode": {
2222   },
2223
2224   "ReportDeviceNetworkInterfaces": {
2225   },
2226
2227   "ReportDeviceUsers": {
2228   },
2229
2230   "DeviceAllowNewUsers": {
2231   },
2232
2233   "DeviceUserWhitelist": {
2234   },
2235
2236   "DeviceGuestModeEnabled": {
2237   },
2238
2239   "DeviceShowUserNamesOnSignin": {
2240   },
2241
2242   "DeviceDataRoamingEnabled": {
2243   },
2244
2245   "DeviceMetricsReportingEnabled": {
2246     "os": ["chromeos"],
2247     "official_only": true,
2248     "test_policy": { "DeviceMetricsReportingEnabled": true },
2249     "pref_mappings": [
2250       { "pref": "cros.metrics.reportingEnabled",
2251         "indicator_test_setup_js": "Preferences.getInstance().addEventListener('alternate_error_pages.enabled', function(event) { Preferences.prefsChangedCallback(['cros.metrics.reportingEnabled', {value: event.value.value, controlledBy: event.value.controlledBy, disabled: event.value.disabled}]); });",
2252         "indicator_tests": [
2253           { "policy": { "AlternateErrorPagesEnabled": true } }
2254         ]
2255       }
2256     ],
2257
2258     "note": "TODO(bartfab): The |indicator_test_setup_js| above is a hack that makes |cros.metrics.reportingEnabled| track the status of the entirely unrelated |alternate_error_pages.enabled| pref. This is because cros settings cannot currently be made policy-controlled in browser tests. Remove this hack once that restriction is lifted."
2259   },
2260
2261   "DeviceEphemeralUsersEnabled": {
2262   },
2263
2264   "DeviceIdleLogoutTimeout": {
2265   },
2266
2267   "DeviceIdleLogoutWarningDuration": {
2268   },
2269
2270   "DeviceLoginScreenSaverId": {
2271   },
2272
2273   "DeviceLoginScreenSaverTimeout": {
2274   },
2275
2276   "DeviceStartUpUrls": {
2277   },
2278
2279   "DeviceAppPack": {
2280   },
2281
2282   "DeviceAutoUpdateDisabled": {
2283   },
2284
2285   "DeviceAutoUpdateP2PEnabled": {
2286   },
2287
2288   "DeviceTargetVersionPrefix": {
2289   },
2290
2291   "DeviceUpdateScatterFactor": {
2292   },
2293
2294   "DeviceUpdateAllowedConnectionTypes": {
2295   },
2296
2297   "DeviceUpdateHttpDownloadsEnabled": {
2298   },
2299
2300   "ReportDeviceLocation": {
2301   },
2302
2303   "SystemTimezone": {
2304   },
2305
2306   "SystemUse24HourClock": {
2307   },
2308
2309   "DeviceLocalAccounts": {
2310   },
2311
2312   "DeviceLocalAccountAutoLoginId": {
2313   },
2314
2315   "DeviceLocalAccountAutoLoginDelay": {
2316   },
2317
2318   "DeviceLocalAccountAutoLoginBailoutEnabled": {
2319   },
2320
2321   "DeviceLocalAccountPromptForNetworkWhenOffline": {
2322   },
2323
2324   "DeviceBlockDevmode": {
2325   },
2326
2327   "DeviceLoginScreenPowerManagement": {
2328   },
2329
2330   "DeviceAllowRedeemChromeOsRegistrationOffers": {
2331   },
2332
2333   "DeviceStartUpFlags": {
2334   },
2335
2336   "DeviceVariationsRestrictParameter" : {
2337   },
2338
2339   "DeviceLoginScreenDefaultLargeCursorEnabled" : {
2340   },
2341
2342   "DeviceLoginScreenDefaultSpokenFeedbackEnabled" : {
2343   },
2344
2345   "DeviceLoginScreenDefaultHighContrastEnabled" : {
2346   },
2347
2348   "DeviceLoginScreenDefaultScreenMagnifierType" : {
2349   },
2350
2351   "DeviceLoginScreenDefaultVirtualKeyboardEnabled" : {
2352   },
2353
2354   "UptimeLimit": {
2355   },
2356
2357   "RebootAfterUpdate": {
2358   },
2359
2360   "AttestationEnabledForDevice": {
2361   },
2362
2363   "AttestationForContentProtectionEnabled": {
2364   },
2365
2366   "SupervisedUsersEnabled": {
2367   },
2368
2369   "SupervisedUserCreationEnabled": {
2370   },
2371
2372   "AutoCleanUpStrategy": {
2373   },
2374
2375   "DeviceTransferSAMLCookies": {
2376   },
2377
2378   "----- Chrome Frame policies -------------------------------------------": {},
2379
2380   "ChromeFrameRendererSettings": {
2381   },
2382
2383   "RenderInChromeFrameList": {
2384   },
2385
2386   "RenderInHostList": {
2387   },
2388
2389   "ChromeFrameContentTypes": {
2390   },
2391
2392   "GCFUserDataDir": {
2393   },
2394
2395   "AdditionalLaunchParameters": {
2396   },
2397
2398   "SuppressChromeFrameTurndownPrompt": {
2399   },
2400
2401   "SkipMetadataCheck": {
2402   }
2403 }