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