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