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