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