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