Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / policy / policy_test_cases.json
blob6bcdec0ba0750df49a2adec47947f94a0cb81d92
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"],
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"],
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"],
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"],
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   "AllowCrossOriginAuthPrompt": {
653     "os": ["win", "mac", "linux"],
654     "test_policy": { "AllowCrossOriginAuthPrompt": true },
655     "pref_mappings": [
656       { "pref": "auth.allow_cross_origin_prompt",
657         "local_state": true
658       }
659     ]
660   },
662   "ExtensionInstallBlacklist": {
663     "os": ["win", "linux", "mac", "chromeos"],
664     "test_policy": { "ExtensionInstallBlacklist": ["*"] },
665     "pref_mappings": [
666       { "pref": "extensions.install.denylist" }
667     ]
668   },
670   "ExtensionInstallWhitelist": {
671     "os": ["win", "linux", "mac", "chromeos"],
672     "test_policy": { "ExtensionInstallWhitelist": ["lcncmkcnkcdbbanbjakcencbaoegdjlp"] },
673     "pref_mappings": [
674       { "pref": "extensions.install.allowlist" }
675     ]
676   },
678   "ExtensionInstallForcelist": {
679     "os": ["win", "linux", "mac", "chromeos"],
680     "test_policy": { "ExtensionInstallForcelist": ["lcncmkcnkcdbbanbjakcencbaoegdjlp;https://clients2.google.com/service/update2/crx"] },
681     "pref_mappings": [
682       { "pref": "extensions.install.forcelist" }
683     ]
684   },
686   "ExtensionInstallSources": {
687     "os": ["win", "linux", "mac", "chromeos"],
688     "test_policy": { "ExtensionInstallSources": ["https://www.corp.monkey.net/*"] },
689     "pref_mappings": [
690       { "pref": "extensions.allowed_install_sites" }
691     ]
692   },
694   "ExtensionAllowedTypes": {
695     "os": ["win", "linux", "mac", "chromeos"],
696     "test_policy": { "ExtensionAllowedTypes": ["hosted_app"] },
697     "pref_mappings": [
698       { "pref": "extensions.allowed_types" }
699     ]
700   },
702   "ExtensionSettings": {
703     "os": ["win", "linux", "mac", "chromeos"],
704     "test_policy": {
705       "ExtensionSettings": {
706         "abcdefghijklmnopabcdefghijklmnop" : {
707           "installation_mode": "allowed",
708           "blocked_permissions": ["history"]
709         },
710         "bcdefghijklmnopabcdefghijklmnopa" : {
711           "installation_mode": "force_installed",
712           "update_url": "http://example.com/update_url",
713           "allowed_permissions": ["downloads"]
714         },
715         "*": {
716           "installation_mode": "blocked",
717           "blocked_permissions": ["downloads", "bookmarks"],
718           "install_sources": ["http://company-intranet/chromeapps"],
719           "allowed_types": ["hosted_app"]
720         }
721       }
722     },
723     "pref_mappings": [
724       { "pref": "extensions.management" }
725     ]
726   },
728   "ShowHomeButton": {
729     "os": ["win", "linux", "mac", "chromeos"],
730     "can_be_recommended": true,
731     "test_policy": { "ShowHomeButton": true },
732     "pref_mappings": [
733       { "pref": "browser.show_home_button",
734         "indicator_tests": [
735           { "policy": { "ShowHomeButton": true } }
736         ]
737       }
738     ]
739   },
741   "DeveloperToolsDisabled": {
742     "os": ["win", "linux", "mac", "chromeos"],
743     "test_policy": { "DeveloperToolsDisabled": true },
744     "pref_mappings": [
745       { "pref": "devtools.disabled" }
746     ]
747   },
749   "RestoreOnStartup": {
750     "os": ["win", "linux", "mac", "chromeos"],
751     "can_be_recommended": true,
752     "test_policy": { "RestoreOnStartup": 4 },
753     "pref_mappings": [
754       { "pref": "session.restore_on_startup",
755         "indicator_tests": [
756           { "policy": { "RestoreOnStartup": 1 },
757             "value": "1"},
758           { "policy": { "RestoreOnStartup": 4 },
759             "value": "4"},
760           { "policy": { "RestoreOnStartup": 5 },
761             "value": "5"}
762         ]
763       }
764     ]
765   },
767   "RestoreOnStartupURLs": {
768     "os": ["win", "linux", "mac", "chromeos"],
769     "can_be_recommended": true,
770     "test_policy": { "RestoreOnStartupURLs": ["chromium.org"] },
771     "pref_mappings": [
772       { "pref": "session.startup_urls",
773         "indicator_tests": [
774           { "policy": { "RestoreOnStartupURLs": ["chromium.org"] } }
775         ]
776       }
777     ]
778   },
780   "BlockThirdPartyCookies": {
781     "os": ["win", "linux", "mac", "chromeos"],
782     "can_be_recommended": true,
783     "test_policy": { "BlockThirdPartyCookies": true },
784     "pref_mappings": [
785       { "pref": "profile.block_third_party_cookies",
786         "indicator_tests": [
787           { "policy": { "BlockThirdPartyCookies": true } }
788         ]
789       }
790     ]
791   },
793   "DefaultSearchProviderEnabled": {
794     "os": ["win", "linux", "mac", "chromeos"],
795     "test_policy": { "DefaultSearchProviderEnabled": false },
796     "pref_mappings": [
797       { "pref": "default_search_provider_data.template_url_data",
798         "indicator_tests": [
799           { "policy": { "DefaultSearchProviderEnabled": false } },
800           { "policy": { "DefaultSearchProviderEnabled": true, "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google" } }
801         ]
802       }
803     ]
804   },
806   "DefaultSearchProviderName": {
807     "os": ["win", "linux", "mac", "chromeos"],
808     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderName": "google.com" },
809     "pref_mappings": [
810       { "pref": "default_search_provider_data.template_url_data" }
811     ]
812   },
814   "DefaultSearchProviderKeyword": {
815     "os": ["win", "linux", "mac", "chromeos"],
816     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google" },
817     "pref_mappings": [
818       { "pref": "default_search_provider_data.template_url_data" }
819     ]
820   },
822   "DefaultSearchProviderSearchURL": {
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         "indicator_selector": "[setting=search-engine]",
828         "indicator_tests": [
829           { "policy": { "DefaultSearchProviderEnabled": true, "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}" } }
830         ]
831       }
832     ]
833   },
835   "DefaultSearchProviderSuggestURL": {
836     "os": ["win", "linux", "mac", "chromeos"],
837     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderSuggestURL": "http://www.google.com/suggest?q={searchTerms}" },
838     "pref_mappings": [
839       { "pref": "default_search_provider_data.template_url_data" }
840     ]
841   },
843   "DefaultSearchProviderInstantURL": {
844     "os": ["win", "linux", "mac", "chromeos"],
845     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderInstantURL": "http://www.google.com/instant?q={searchTerms}" },
846     "pref_mappings": [
847       { "pref": "default_search_provider_data.template_url_data" }
848     ]
849   },
851   "DefaultSearchProviderNewTabURL": {
852     "os": ["win", "linux", "mac", "chromeos"],
853     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderNewTabURL": "http://www.google.com/newtab" },
854     "pref_mappings": [
855       { "pref": "default_search_provider_data.template_url_data" }
856     ]
857   },
859   "DefaultSearchProviderIconURL": {
860     "os": ["win", "linux", "mac", "chromeos"],
861     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderIconURL": "http://www.google.com/favicon.ico" },
862     "pref_mappings": [
863       { "pref": "default_search_provider_data.template_url_data" }
864     ]
865   },
867   "DefaultSearchProviderEncodings": {
868     "os": ["win", "linux", "mac", "chromeos"],
869     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderEncodings": ["UTF-8"] },
870     "pref_mappings": [
871       { "pref": "default_search_provider_data.template_url_data" }
872     ]
873   },
875   "DefaultSearchProviderAlternateURLs": {
876     "os": ["win", "linux", "mac", "chromeos"],
877     "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}"] },
878     "pref_mappings": [
879       { "pref": "default_search_provider_data.template_url_data" }
880     ]
881   },
883   "DefaultSearchProviderSearchTermsReplacementKey": {
884     "os": ["win", "linux", "mac", "chromeos"],
885     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderSearchTermsReplacementKey": "espv" },
886     "pref_mappings": [
887       { "pref": "default_search_provider_data.template_url_data" }
888     ]
889   },
891   "DefaultSearchProviderImageURL": {
892     "os": ["win", "linux", "mac", "chromeos"],
893     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderImageURL": "http://www.google.com/searchbyimage/upload" },
894     "pref_mappings": [
895       { "pref": "default_search_provider_data.template_url_data" }
896     ]
897   },
899   "DefaultSearchProviderSearchURLPostParams": {
900     "os": ["win", "linux", "mac", "chromeos"],
901     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderSearchURLPostParams": "" },
902     "pref_mappings": [
903       { "pref": "default_search_provider_data.template_url_data" }
904     ]
905   },
907   "DefaultSearchProviderSuggestURLPostParams": {
908     "os": ["win", "linux", "mac", "chromeos"],
909     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderSuggestURLPostParams": "" },
910     "pref_mappings": [
911       { "pref": "default_search_provider_data.template_url_data" }
912     ]
913   },
915   "DefaultSearchProviderInstantURLPostParams": {
916     "os": ["win", "linux", "mac", "chromeos"],
917     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderInstantURLPostParams": "" },
918     "pref_mappings": [
919       { "pref": "default_search_provider_data.template_url_data" }
920     ]
921   },
923   "DefaultSearchProviderImageURLPostParams": {
924     "os": ["win", "linux", "mac", "chromeos"],
925     "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}", "DefaultSearchProviderKeyword": "google", "DefaultSearchProviderImageURLPostParams": "image_content={imageThumbnail},image_url={imageURL},sbisrc={imageSearchSource}" },
926     "pref_mappings": [
927       { "pref": "default_search_provider_data.template_url_data" }
928     ]
929   },
931   "DefaultCookiesSetting": {
932     "os": ["win", "linux", "mac", "chromeos"],
933     "test_policy": { "DefaultCookiesSetting": 2 },
934     "pref_mappings": [
935       { "pref": "profile.managed_default_content_settings.cookies",
936         "indicator_selector": "[content-setting=cookies]",
937         "indicator_tests": [
938           { "policy": { "DefaultCookiesSetting": 1 },
939             "value": "allow"},
940           { "policy": { "DefaultCookiesSetting": 2 },
941             "value": "block"},
942           { "policy": { "DefaultCookiesSetting": 4 },
943             "value": "session"}
944         ]
945       }
946     ],
948     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
949   },
951   "DefaultImagesSetting": {
952     "os": ["win", "linux", "mac", "chromeos"],
953     "test_policy": { "DefaultImagesSetting": 2 },
954     "pref_mappings": [
955       { "pref": "profile.managed_default_content_settings.images",
956         "indicator_selector": "[content-setting=images]",
957         "indicator_tests": [
958           { "policy": { "DefaultImagesSetting": 1 },
959             "value": "allow"},
960           { "policy": { "DefaultImagesSetting": 2 },
961             "value": "block"}
962         ]
963       }
964     ],
966     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
967   },
969   "DefaultJavaScriptSetting": {
970     "os": ["win", "linux", "mac", "chromeos"],
971     "test_policy": { "DefaultJavaScriptSetting": 2 },
972     "pref_mappings": [
973       { "pref": "profile.managed_default_content_settings.javascript",
974         "indicator_selector": "[content-setting=javascript]",
975         "indicator_tests": [
976           { "policy": { "DefaultJavaScriptSetting": 1 },
977             "value": "allow"},
978           { "policy": { "DefaultJavaScriptSetting": 2 },
979             "value": "block"}
980         ]
981       }
982     ],
984     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
985   },
987   "DefaultPluginsSetting": {
988     "os": ["win", "linux", "mac", "chromeos"],
989     "test_policy": { "DefaultPluginsSetting": 2 },
990     "pref_mappings": [
991       { "pref": "profile.managed_default_content_settings.plugins",
992         "indicator_selector": "[content-setting=plugins]",
993         "indicator_tests": [
994           { "policy": { "DefaultPluginsSetting": 1 },
995             "value": "allow"},
996           { "policy": { "DefaultPluginsSetting": 2 },
997             "value": "block"}
998         ]
999       }
1000     ],
1002     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1003   },
1005   "DefaultPopupsSetting": {
1006     "os": ["win", "linux", "mac", "chromeos"],
1007     "test_policy": { "DefaultPopupsSetting": 2 },
1008     "pref_mappings": [
1009       { "pref": "profile.managed_default_content_settings.popups",
1010         "indicator_selector": "[content-setting=popups]",
1011         "indicator_tests": [
1012           { "policy": { "DefaultPopupsSetting": 1 },
1013             "value": "allow"},
1014           { "policy": { "DefaultPopupsSetting": 2 },
1015             "value": "block"}
1016         ]
1017       }
1018     ],
1020     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1021   },
1023   "DefaultNotificationsSetting": {
1024     "os": ["win", "linux", "mac", "chromeos"],
1025     "test_policy": { "DefaultNotificationsSetting": 2 },
1026     "pref_mappings": [
1027       { "pref": "profile.managed_default_content_settings.notifications",
1028         "indicator_selector": "[content-setting=notifications]",
1029         "indicator_tests": [
1030           { "policy": { "DefaultNotificationsSetting": 1 },
1031             "value": "allow"},
1032           { "policy": { "DefaultNotificationsSetting": 2 },
1033             "value": "block"},
1034           { "policy": { "DefaultNotificationsSetting": 3 },
1035             "value": "ask"}
1036         ]
1037       }
1038     ],
1040     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1041   },
1043   "DefaultGeolocationSetting": {
1044     "os": ["win", "linux", "mac", "chromeos"],
1045     "test_policy": { "DefaultGeolocationSetting": 2 },
1046     "pref_mappings": [
1047       { "pref": "profile.managed_default_content_settings.geolocation",
1048         "indicator_selector": "[content-setting=location]",
1049         "indicator_tests": [
1050           { "policy": { "DefaultGeolocationSetting": 1 },
1051             "value": "allow"},
1052           { "policy": { "DefaultGeolocationSetting": 2 },
1053             "value": "block"},
1054           { "policy": { "DefaultGeolocationSetting": 3 },
1055             "value": "ask"}
1056         ]
1057       }
1058     ],
1060     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1061   },
1063   "DefaultMediaStreamSetting": {
1064     "os": ["win", "linux", "mac", "chromeos"],
1065     "test_policy": { "DefaultMediaStreamSetting": 2 },
1066     "pref_mappings": [
1067       { "pref": "profile.managed_default_content_settings.media_stream",
1068         "indicator_selector": "[content-setting=media-stream]",
1069         "indicator_tests": [
1070           { "policy": { "DefaultMediaStreamSetting": 2 },
1071             "value": "block"
1072           },
1073           { "policy": { "DefaultMediaStreamSetting": 3 },
1074             "value": "ask"
1075           }
1076         ]
1077       }
1078     ],
1080     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1081   },
1083   "AudioCaptureAllowed": {
1084     "os": ["win", "linux", "mac", "chromeos"],
1085     "test_policy": { "AudioCaptureAllowed": false },
1086     "pref_mappings": [
1087       { "pref": "hardware.audio_capture_enabled",
1088         "indicator_selector": "#media-indicator",
1089         "indicator_tests": [
1090           { "policy": { "AudioCaptureAllowed": false } }
1091         ]
1092       }
1093     ]
1094   },
1096   "AudioCaptureAllowedUrls": {
1097     "os": ["win", "linux", "mac", "chromeos"],
1098     "test_policy": { "AudioCaptureAllowedUrls": ["[*.]google.com"] },
1099     "pref_mappings": [
1100       {
1101         "pref": "hardware.audio_capture_allowed_urls"
1102       }
1103     ]
1104   },
1106   "VideoCaptureAllowed": {
1107     "os": ["win", "linux", "mac", "chromeos"],
1108     "test_policy": { "VideoCaptureAllowed": false },
1109     "pref_mappings": [
1110       { "pref": "hardware.video_capture_enabled",
1111         "indicator_selector": "#media-indicator",
1112         "indicator_tests": [
1113           { "policy": { "VideoCaptureAllowed": false } }
1114         ]
1115       }
1116     ]
1117   },
1119   "VideoCaptureAllowedUrls": {
1120     "os": ["win", "linux", "mac", "chromeos"],
1121     "test_policy": { "VideoCaptureAllowedUrls": ["[*.]google.com"] },
1122     "pref_mappings": [
1123       {
1124         "pref": "hardware.video_capture_allowed_urls"
1125       }
1126     ]
1127   },
1129   "AutoSelectCertificateForUrls": {
1130     "os": ["win", "linux", "mac", "chromeos"],
1131     "test_policy": { "AutoSelectCertificateForUrls": ["{'pattern':'https://example.com','filter':{'ISSUER':{'CN': 'issuer-name'}}}"] },
1132     "pref_mappings": [
1133       { "pref": "profile.managed_auto_select_certificate_for_urls" }
1134     ],
1136     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1137   },
1139   "CookiesAllowedForUrls": {
1140     "os": ["win", "linux", "mac", "chromeos"],
1141     "test_policy": { "CookiesAllowedForUrls": ["[*.]google.com"] },
1142     "pref_mappings": [
1143       { "pref": "profile.managed_cookies_allowed_for_urls",
1144         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=cookies]').click();",
1145         "indicator_selector": "[content-exception=cookies]",
1146         "indicator_tests": [
1147           { "policy": { "CookiesAllowedForUrls": ["[*.]google.com"] } }
1148         ]
1149       }
1150     ],
1152     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1153   },
1155   "CookiesBlockedForUrls": {
1156     "os": ["win", "linux", "mac", "chromeos"],
1157     "test_policy": { "CookiesBlockedForUrls": ["[*.]google.com"] },
1158     "pref_mappings": [
1159       { "pref": "profile.managed_cookies_blocked_for_urls",
1160         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=cookies]').click();",
1161         "indicator_selector": "[content-exception=cookies]",
1162         "indicator_tests": [
1163           { "policy": { "CookiesBlockedForUrls": ["[*.]google.com"] } }
1164         ]
1165       }
1166     ],
1168     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1169   },
1171   "CookiesSessionOnlyForUrls": {
1172     "os": ["win", "linux", "mac", "chromeos"],
1173     "test_policy": { "CookiesSessionOnlyForUrls": ["[*.]google.com"] },
1174     "pref_mappings": [
1175       { "pref": "profile.managed_cookies_sessiononly_for_urls",
1176         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=cookies]').click();",
1177         "indicator_selector": "[content-exception=cookies]",
1178         "indicator_tests": [
1179           { "policy": { "CookiesSessionOnlyForUrls": ["[*.]google.com"] } }
1180         ]
1181       }
1182     ],
1184     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1185   },
1187   "ImagesAllowedForUrls": {
1188     "os": ["win", "linux", "mac", "chromeos"],
1189     "test_policy": { "ImagesAllowedForUrls": ["[*.]google.com"] },
1190     "pref_mappings": [
1191       { "pref": "profile.managed_images_allowed_for_urls",
1192         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=images]').click();",
1193         "indicator_selector": "[content-exception=images]",
1194         "indicator_tests": [
1195           { "policy": { "ImagesAllowedForUrls": ["[*.]google.com"] } }
1196         ]
1197       }
1198     ],
1200     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1201   },
1203   "ImagesBlockedForUrls": {
1204     "os": ["win", "linux", "mac", "chromeos"],
1205     "test_policy": { "ImagesBlockedForUrls": ["[*.]google.com"] },
1206     "pref_mappings": [
1207       { "pref": "profile.managed_images_blocked_for_urls",
1208         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=images]').click();",
1209         "indicator_selector": "[content-exception=images]",
1210         "indicator_tests": [
1211           { "policy": { "ImagesBlockedForUrls": ["[*.]google.com"] } }
1212         ]
1213       }
1214     ],
1216     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1217   },
1219   "JavaScriptAllowedForUrls": {
1220     "os": ["win", "linux", "mac", "chromeos"],
1221     "test_policy": { "JavaScriptAllowedForUrls": ["[*.]google.com"] },
1222     "pref_mappings": [
1223       { "pref": "profile.managed_javascript_allowed_for_urls",
1224         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=javascript]').click();",
1225         "indicator_selector": "[content-exception=javascript]",
1226         "indicator_tests": [
1227           { "policy": { "JavaScriptAllowedForUrls": ["[*.]google.com"] } }
1228         ]
1229       }
1230     ],
1232     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1233   },
1235   "JavaScriptBlockedForUrls": {
1236     "os": ["win", "linux", "mac", "chromeos"],
1237     "test_policy": { "JavaScriptBlockedForUrls": ["[*.]google.com"] },
1238     "pref_mappings": [
1239       { "pref": "profile.managed_javascript_blocked_for_urls",
1240         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=javascript]').click();",
1241         "indicator_selector": "[content-exception=javascript]",
1242         "indicator_tests": [
1243           { "policy": { "JavaScriptBlockedForUrls": ["[*.]google.com"] } }
1244         ]
1245       }
1246     ],
1248     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1249   },
1251   "PluginsAllowedForUrls": {
1252     "os": ["win", "linux", "mac", "chromeos"],
1253     "test_policy": { "PluginsAllowedForUrls": ["[*.]google.com"] },
1254     "pref_mappings": [
1255       { "pref": "profile.managed_plugins_allowed_for_urls",
1256         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=plugins]').click();",
1257         "indicator_selector": "[content-exception=plugins]",
1258         "indicator_tests": [
1259           { "policy": { "PluginsAllowedForUrls": ["[*.]google.com"] } }
1260         ]
1261       }
1262     ],
1264     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1265   },
1267   "PluginsBlockedForUrls": {
1268     "os": ["win", "linux", "mac", "chromeos"],
1269     "test_policy": { "PluginsBlockedForUrls": ["[*.]google.com"] },
1270     "pref_mappings": [
1271       { "pref": "profile.managed_plugins_blocked_for_urls",
1272         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=plugins]').click();",
1273         "indicator_selector": "[content-exception=plugins]",
1274         "indicator_tests": [
1275           { "policy": { "PluginsBlockedForUrls": ["[*.]google.com"] } }
1276         ]
1277       }
1278     ],
1280     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1281   },
1283   "PopupsAllowedForUrls": {
1284     "os": ["win", "linux", "mac", "chromeos"],
1285     "test_policy": { "PopupsAllowedForUrls": ["[*.]google.com"] },
1286     "pref_mappings": [
1287       { "pref": "profile.managed_popups_allowed_for_urls",
1288         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=popups]').click();",
1289         "indicator_selector": "[content-exception=popups]",
1290         "indicator_tests": [
1291           { "policy": { "PopupsAllowedForUrls": ["[*.]google.com"] } }
1292         ]
1293       }
1294     ],
1296     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1297   },
1299   "PopupsBlockedForUrls": {
1300     "os": ["win", "linux", "mac", "chromeos"],
1301     "test_policy": { "PopupsBlockedForUrls": ["[*.]google.com"] },
1302     "pref_mappings": [
1303       { "pref": "profile.managed_popups_blocked_for_urls",
1304         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=popups]').click();",
1305         "indicator_selector": "[content-exception=popups]",
1306         "indicator_tests": [
1307           { "policy": { "PopupsBlockedForUrls": ["[*.]google.com"] } }
1308         ]
1309       }
1310     ],
1312     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1313   },
1315   "NotificationsAllowedForUrls": {
1316     "os": ["win", "linux", "mac", "chromeos"],
1317     "test_policy": { "NotificationsAllowedForUrls": ["[*.]google.com"] },
1318     "pref_mappings": [
1319       { "pref": "profile.managed_notifications_allowed_for_urls",
1320         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=notifications]').click();",
1321         "indicator_selector": "[content-exception=notifications]",
1322         "indicator_tests": [
1323           { "policy": { "NotificationsAllowedForUrls": ["[*.]google.com"] } }
1324         ]
1325       }
1326     ],
1328     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1329   },
1331   "NotificationsBlockedForUrls": {
1332     "os": ["win", "linux", "mac", "chromeos"],
1333     "test_policy": { "NotificationsBlockedForUrls": ["[*.]google.com"] },
1334     "pref_mappings": [
1335       { "pref": "profile.managed_notifications_blocked_for_urls",
1336         "indicator_test_setup_js": "document.querySelector('button.exceptions-list-button[contentType=notifications]').click();",
1337         "indicator_selector": "[content-exception=notifications]",
1338         "indicator_tests": [
1339           { "policy": { "NotificationsBlockedForUrls": ["[*.]google.com"] } }
1340         ]
1341       }
1342     ],
1344     "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug.com/106682 is fixed."
1345   },
1347   "Disable3DAPIs": {
1348     "os": ["win", "linux", "mac", "chromeos"],
1349     "test_policy": { "Disable3DAPIs": true },
1350     "pref_mappings": [
1351       { "pref": "disable_3d_apis" }
1352     ]
1353   },
1355   "InstantEnabled": {
1356   },
1358   "TranslateEnabled": {
1359     "os": ["win", "linux", "mac", "chromeos"],
1360     "can_be_recommended": true,
1361     "test_policy": { "TranslateEnabled": false },
1362     "pref_mappings": [
1363       { "pref": "translate.enabled",
1364         "indicator_tests": [
1365           { "policy": { "TranslateEnabled": true } }
1366         ]
1367       }
1368     ]
1369   },
1371   "AllowOutdatedPlugins": {
1372     "os": ["win", "linux", "mac", "chromeos"],
1373     "test_policy": { "AllowOutdatedPlugins": true },
1374     "pref_mappings": [
1375       { "pref": "plugins.allow_outdated" }
1376     ]
1377   },
1379   "AlwaysAuthorizePlugins": {
1380     "os": ["win", "linux", "mac", "chromeos"],
1381     "test_policy": { "AlwaysAuthorizePlugins": true },
1382     "pref_mappings": [
1383       { "pref": "plugins.always_authorize" }
1384     ]
1385   },
1387   "BookmarkBarEnabled": {
1388     "os": ["win", "linux", "mac", "chromeos"],
1389     "can_be_recommended": true,
1390     "test_policy": { "BookmarkBarEnabled": true },
1391     "pref_mappings": [
1392       { "pref": "bookmark_bar.show_on_all_tabs",
1393         "indicator_tests": [
1394           { "policy": { "BookmarkBarEnabled": true } }
1395         ]
1396       }
1397     ]
1398   },
1400   "EditBookmarksEnabled": {
1401     "os": ["win", "linux", "mac", "chromeos"],
1402     "test_policy": { "EditBookmarksEnabled": false },
1403     "pref_mappings": [
1404       { "pref": "bookmarks.editing_enabled" }
1405     ]
1406   },
1408   "ShowAppsShortcutInBookmarkBar": {
1409     "os": ["win", "linux", "mac"],
1410     "test_policy": { "ShowAppsShortcutInBookmarkBar": false },
1411     "pref_mappings": [
1412       { "pref": "bookmark_bar.show_apps_shortcut" }
1413     ]
1414   },
1416   "AllowFileSelectionDialogs": {
1417     "os": ["win", "mac", "linux"],
1418     "test_policy": { "AllowFileSelectionDialogs": false },
1419     "pref_mappings": [
1420       { "pref": "select_file_dialogs.allowed",
1421         "local_state": true
1422       },
1423       { "pref": "download.prompt_for_download",
1424         "indicator_tests": [
1425           { "policy": { "AllowFileSelectionDialogs": false } }
1426         ]
1427       }
1428     ]
1429   },
1431   "ImportBookmarks": {
1432     "os": ["win", "mac", "linux"],
1433     "can_be_recommended": true,
1434     "test_policy": { "ImportBookmarks": false },
1435     "pref_mappings": [
1436       { "pref": "import_bookmarks",
1437         "indicator_tests": [
1438           { "policy": { "ImportBookmarks": false } }
1439         ]
1440       }
1441     ]
1442   },
1444   "ImportHistory": {
1445     "os": ["win", "mac", "linux"],
1446     "can_be_recommended": true,
1447     "test_policy": { "ImportHistory": false },
1448     "pref_mappings": [
1449       { "pref": "import_history",
1450         "indicator_tests": [
1451           { "policy": { "ImportHistory": false } }
1452         ]
1453       }
1454     ]
1455   },
1457   "ImportHomepage": {
1458     "os": ["win", "mac", "linux"],
1459     "test_policy": { "ImportHomepage": false },
1460     "pref_mappings": [
1461       { "pref": "import_home_page" }
1462     ]
1463   },
1465   "ImportSearchEngine": {
1466     "os": ["win", "mac", "linux"],
1467     "can_be_recommended": true,
1468     "test_policy": { "ImportSearchEngine": false },
1469     "pref_mappings": [
1470       { "pref": "import_search_engine",
1471         "indicator_tests": [
1472           { "policy": { "ImportSearchEngine": false } }
1473         ]
1474       }
1475     ]
1476   },
1478   "ImportSavedPasswords": {
1479     "os": ["win", "mac", "linux"],
1480     "can_be_recommended": true,
1481     "test_policy": { "ImportSavedPasswords": false },
1482     "pref_mappings": [
1483       { "pref": "import_saved_passwords",
1484         "indicator_tests": [
1485           { "policy": { "ImportSavedPasswords": false } }
1486         ]
1487       }
1488     ]
1489   },
1491   "ImportAutofillFormData": {
1492     "os": ["win", "mac", "linux"],
1493     "can_be_recommended": true,
1494     "test_policy": { "ImportAutofillFormData": false },
1495     "pref_mappings": [
1496       { "pref": "import_autofill_form_data",
1497         "indicator_tests": [
1498           { "policy": { "ImportAutofillFormData": false } }
1499         ]
1500       }
1501     ]
1502   },
1504   "MaxConnectionsPerProxy": {
1505     "os": ["win", "linux", "mac", "chromeos"],
1506     "test_policy": { "MaxConnectionsPerProxy": 16 },
1507     "pref_mappings": [
1508       { "pref": "net.max_connections_per_proxy",
1509         "local_state": true
1510       }
1511     ]
1512   },
1514   "HideWebStorePromo": {
1515   },
1517   "URLBlacklist": {
1518     "os": ["win", "linux", "mac", "chromeos"],
1519     "test_policy": { "URLBlacklist": ["google.com"] },
1520     "pref_mappings": [
1521       { "pref": "policy.url_blacklist" }
1522     ]
1523   },
1525   "URLWhitelist": {
1526     "os": ["win", "linux", "mac", "chromeos"],
1527     "test_policy": { "URLWhitelist": ["google.com"] },
1528     "pref_mappings": [
1529       { "pref": "policy.url_whitelist" }
1530     ]
1531   },
1533   "EnterpriseWebStoreURL": {
1534     "note": "This policy is retired, see http://crbug.com/178938."
1535   },
1537   "EnterpriseWebStoreName": {
1538     "note": "This policy is retired, see http://crbug.com/178938."
1539   },
1541   "EnableMemoryInfo": {
1542     "note": "This policy is retired, see http://crbug.com/350339."
1543   },
1545   "DisablePrintPreview": {
1546     "os": ["win", "mac", "linux"],
1547     "test_policy": { "DisablePrintPreview": false },
1548     "pref_mappings": [
1549       { "pref": "printing.print_preview_disabled" }
1550     ]
1551   },
1553   "BackgroundModeEnabled": {
1554     "os": ["win", "linux"],
1555     "can_be_recommended": true,
1556     "test_policy": { "BackgroundModeEnabled": false },
1557     "pref_mappings": [
1558       { "pref": "background_mode.enabled",
1559         "local_state": true,
1560         "indicator_tests": [
1561           { "policy": { "BackgroundModeEnabled": false } }
1562         ]
1563       }
1564     ]
1565   },
1567   "RestrictSigninToPattern": {
1568     "os": ["win", "mac", "linux"],
1569     "test_policy": { "RestrictSigninToPattern": ".*@google.com" },
1570     "pref_mappings": [
1571       { "pref": "google.services.username_pattern",
1572         "local_state": true
1573       }
1574     ]
1575   },
1577   "DisableSafeBrowsingProceedAnyway": {
1578     "os": ["win", "linux", "mac", "chromeos"],
1579     "test_policy": { "DisableSafeBrowsingProceedAnyway": true },
1580     "pref_mappings": [
1581       { "pref": "safebrowsing.proceed_anyway_disabled" }
1582     ]
1583   },
1585   "SafeBrowsingExtendedReportingOptInAllowed": {
1586     "os": ["win", "linux", "mac", "chromeos"],
1587     "test_policy": { "SafeBrowsingExtendedReportingOptInAllowed": true },
1588     "pref_mappings": [
1589       { "pref": "safebrowsing.extended_reporting_opt_in_allowed" }
1590     ]
1591   },
1593   "SpellCheckServiceEnabled": {
1594     "os": ["win", "linux", "mac", "chromeos"],
1595     "official_only": true,
1596     "can_be_recommended": true,
1597     "test_policy": { "SpellCheckServiceEnabled": false },
1598     "pref_mappings": [
1599       { "pref": "spellcheck.use_spelling_service",
1600         "indicator_tests": [
1601           { "policy": { "SpellCheckServiceEnabled": false } }
1602         ]
1603       }
1604     ]
1605   },
1607   "DisableScreenshots": {
1608     "os": ["win", "linux", "mac", "chromeos"],
1609     "test_policy": { "DisableScreenshots": true },
1610     "pref_mappings": [
1611       { "pref": "disable_screenshots" }
1612     ]
1613   },
1615   "BuiltInDnsClientEnabled": {
1616     "os": ["win", "linux", "mac"],
1617     "test_policy": { "BuiltInDnsClientEnabled": true },
1618     "pref_mappings": [
1619       { "pref": "async_dns.enabled",
1620         "local_state": true
1621       }
1622     ]
1623   },
1625   "WPADQuickCheckEnabled": {
1626     "os": ["win", "linux", "mac", "chromeos"],
1627     "test_policy": { "WPADQuickCheckEnabled": true },
1628     "pref_mappings": [
1629       { "pref": "proxy.quick_check_enabled",
1630         "local_state": true
1631       }
1632     ]
1633   },
1635   "RegisteredProtocolHandlers": {
1636     "os": ["win", "linux", "mac", "chromeos"],
1637     "can_be_recommended": true,
1638     "test_policy": { "RegisteredProtocolHandlers": {"protocol": "test", "url": "http://example.com/%s", "default": "true"} },
1639     "pref_mappings": [
1640       { "pref": "custom_handlers.policy.registered_protocol_handlers",
1641         "check_for_mandatory": false
1642       }
1643     ]
1644   },
1646   "HideWebStoreIcon": {
1647     "os": ["win", "linux", "mac", "chromeos"],
1648     "test_policy": { "HideWebStoreIcon": true },
1649     "pref_mappings": [
1650       { "pref": "hide_web_store_icon" }
1651     ]
1652   },
1654   "VariationsRestrictParameter": {
1655     "test_policy": { "VariationsRestrictParameter": "restricted" },
1656     "pref_mappings": [
1657       { "pref": "variations_restrict_parameter",
1658         "local_state": true
1659       }
1660     ]
1661   },
1663   "DataCompressionProxyEnabled": {
1664     "os": ["android"],
1665     "test_policy": { "DataCompressionProxyEnabled": false },
1666     "pref_mappings": [
1667       { "pref": "spdy_proxy.enabled" }
1668     ]
1669   },
1671   "ForceEphemeralProfiles": {
1672   },
1674   "UserAvatarImage": {
1675     "os": ["chromeos"],
1676     "test_policy": {
1677       "UserAvatarImage": {
1678         "url": "http://localhost/",
1679         "hash": "deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef"
1680       }
1681     },
1682     "indicator_selector": "#account-picture-indicator"
1683   },
1685   "WallpaperImage": {
1686     "os": ["chromeos"],
1687     "test_policy": {
1688       "WallpaperImage": {
1689         "url": "http://localhost/",
1690         "hash": "baddecafbaddecafbaddecafbaddecafbaddecafbaddecafbaddecafbaddecaf"
1691       }
1692     },
1693     "indicator_selector": "#wallpaper-indicator"
1694   },
1696   "BrowserGuestModeEnabled": {
1697     "os": ["win", "linux", "mac"],
1698     "test_policy": { "BrowserGuestModeEnabled": true },
1699     "pref_mappings": [
1700       { "pref": "profile.browser_guest_enabled",
1701         "local_state": true
1702       }
1703     ]
1704   },
1706   "BrowserAddPersonEnabled": {
1707     "os": ["win", "linux", "mac"],
1708     "test_policy": { "BrowserAddPersonEnabled": true },
1709     "pref_mappings": [
1710       { "pref": "profile.add_person_enabled",
1711         "local_state": true
1712       }
1713     ]
1714   },
1716   "SSLVersionMin": {
1717   },
1719   "SSLVersionFallbackMin": {
1720     "os": ["win", "linux", "mac", "chromeos"],
1721     "test_policy": { "SSLVersionFallbackMin": "tls1.2" },
1722     "pref_mappings": []
1723   },
1725   "WelcomePageOnOSUpgradeEnabled": {
1726     "os": ["win"],
1727     "test_policy": { "WelcomePageOnOSUpgradeEnabled": false },
1728     "pref_mappings": [
1729       { "pref": "browser.welcome_page_on_os_upgrade_enabled",
1730         "local_state": true
1731       }
1732     ]
1733   },
1735   "----- Chrome OS policies ------------------------------------------------": {},
1737   "ChromeOsLockOnIdleSuspend": {
1738     "os": ["chromeos"],
1739     "can_be_recommended": true,
1740     "test_policy": { "ChromeOsLockOnIdleSuspend": true },
1741     "pref_mappings": [
1742       { "pref": "settings.enable_screen_lock",
1743         "indicator_tests": [
1744           { "policy": { "ChromeOsLockOnIdleSuspend": true } }
1745         ]
1746       }
1747     ]
1748   },
1750   "PolicyRefreshRate": {
1751     "os": ["chromeos"],
1752     "test_policy": { "PolicyRefreshRate": 300000 },
1753     "pref_mappings": [
1754       { "pref": "policy.user_refresh_rate",
1755         "local_state": true
1756       }
1757     ]
1758   },
1760   "MaxInvalidationFetchDelay": {
1761     "os": ["win", "linux", "mac", "chromeos"],
1762     "test_policy": { "PolicyRefreshRate": 15000 },
1763     "pref_mappings": []
1764   },
1766   "OpenNetworkConfiguration": {
1767   },
1769   "SAMLOfflineSigninTimeLimit": {
1770     "os": ["chromeos"],
1771     "test_policy": { "SAMLOfflineSigninTimeLimit": 0 },
1772     "pref_mappings": [
1773       { "pref": "saml.offline_signin_time_limit" }
1774     ]
1775   },
1777   "DriveDisabled": {
1778     "os": ["chromeos"],
1779     "test_policy": { "DriveDisabled": true },
1780     "pref_mappings": [
1781       { "pref": "gdata.disabled",
1782         "indicator_tests": [
1783           { "policy": { "DriveDisabled": true } }
1784         ]
1785       }
1786     ]
1787   },
1789   "DriveDisabledOverCellular": {
1790     "os": ["chromeos"],
1791     "test_policy": { "DriveDisabledOverCellular": true },
1792     "pref_mappings": [
1793       { "pref": "gdata.cellular.disabled" }
1794     ]
1795   },
1797   "PinnedLauncherApps": {
1798     "os": ["chromeos"],
1799     "can_be_recommended": true,
1800     "test_policy": { "PinnedLauncherApps": [] },
1801     "pref_mappings": [
1802       { "pref": "pinned_launcher_apps" }
1803     ]
1804   },
1806   "ExternalStorageDisabled": {
1807     "os": ["chromeos"],
1808     "test_policy": { "ExternalStorageDisabled": true },
1809     "pref_mappings": [
1810       { "pref": "hardware.external_storage_disabled" }
1811     ]
1812   },
1814   "AudioOutputAllowed": {
1815     "os": ["chromeos"],
1816     "test_policy": { "AudioOutputAllowed": true },
1817     "pref_mappings": [
1818       { "pref": "hardware.audio_output_enabled",
1819         "local_state": true }
1820     ]
1821   },
1823   "ShowLogoutButtonInTray": {
1824     "os": ["chromeos"],
1825     "test_policy": { "ShowLogoutButtonInTray": true },
1826     "pref_mappings": [
1827       { "pref": "show_logout_button_in_tray" }
1828     ]
1829   },
1831   "ShelfAutoHideBehavior": {
1832     "os": ["chromeos"],
1833     "test_policy": { "ShelfAutoHideBehavior": "Always" },
1834     "pref_mappings": [
1835       { "pref": "auto_hide_behavior_local" }
1836     ]
1837   },
1839   "UserDisplayName": {
1840     "os": ["chromeos"]
1841   },
1843   "SessionLengthLimit": {
1844     "os": ["chromeos"],
1845     "test_policy": { "SessionLengthLimit": 3600000 },
1846     "pref_mappings": [
1847       { "pref": "session.length_limit",
1848         "local_state": true }
1849     ]
1850   },
1852   "ScreenDimDelayAC": {
1853     "os": ["chromeos"],
1854     "test_policy": { "ScreenDimDelayAC": 420000 },
1855     "pref_mappings": [
1856       { "pref": "power.ac_screen_dim_delay_ms" }
1857     ]
1858   },
1860   "ScreenOffDelayAC": {
1861     "os": ["chromeos"],
1862     "test_policy": { "ScreenOffDelayAC": 480000 },
1863     "pref_mappings": [
1864       { "pref": "power.ac_screen_off_delay_ms" }
1865     ]
1866   },
1868   "ScreenLockDelayAC": {
1869     "os": ["chromeos"],
1870     "test_policy": { "ScreenLockDelayAC": 600000 },
1871     "pref_mappings": [
1872       { "pref": "power.ac_screen_lock_delay_ms" }
1873     ]
1874   },
1876   "IdleWarningDelayAC": {
1877     "os": ["chromeos"],
1878     "test_policy": { "IdleWarningDelayAC": 1800000 },
1879     "pref_mappings": [
1880       { "pref": "power.ac_idle_warning_delay_ms" }
1881     ]
1882   },
1884   "IdleDelayAC": {
1885     "os": ["chromeos"],
1886     "test_policy": { "IdleDelayAC": 1800000 },
1887     "pref_mappings": [
1888       { "pref": "power.ac_idle_delay_ms" }
1889     ]
1890   },
1892   "ScreenDimDelayBattery": {
1893     "os": ["chromeos"],
1894     "test_policy": { "ScreenDimDelayBattery": 300000 },
1895     "pref_mappings": [
1896       { "pref": "power.battery_screen_dim_delay_ms" }
1897     ]
1898   },
1900   "ScreenOffDelayBattery": {
1901     "os": ["chromeos"],
1902     "test_policy": { "ScreenOffDelayBattery": 360000 },
1903     "pref_mappings": [
1904       { "pref": "power.battery_screen_off_delay_ms" }
1905     ]
1906   },
1908   "ScreenLockDelayBattery": {
1909     "os": ["chromeos"],
1910     "test_policy": { "ScreenLockDelayBattery": 600000 },
1911     "pref_mappings": [
1912       { "pref": "power.battery_screen_lock_delay_ms"  }
1913     ]
1914   },
1916   "IdleWarningDelayBattery": {
1917     "os": ["chromeos"],
1918     "test_policy": { "IdleWarningDelayBattery": 600000 },
1919     "pref_mappings": [
1920       { "pref": "power.battery_idle_warning_delay_ms" }
1921     ]
1922   },
1924   "IdleDelayBattery": {
1925     "os": ["chromeos"],
1926     "test_policy": { "IdleDelayBattery": 600000 },
1927     "pref_mappings": [
1928       { "pref": "power.battery_idle_delay_ms" }
1929     ]
1930   },
1932   "IdleAction": {
1933     "os": ["chromeos"],
1934     "test_policy": { "IdleAction": 0 },
1935     "pref_mappings": [
1936       { "pref": "power.ac_idle_action" },
1937       { "pref": "power.battery_idle_action" }
1938     ]
1939   },
1941   "IdleActionAC": {
1942     "os": ["chromeos"],
1943     "test_policy": { "IdleActionAC": 0 },
1944     "pref_mappings": [
1945       { "pref": "power.ac_idle_action" }
1946     ]
1947   },
1949   "IdleActionBattery": {
1950     "os": ["chromeos"],
1951     "test_policy": { "IdleActionBattery": 0 },
1952     "pref_mappings": [
1953       { "pref": "power.battery_idle_action" }
1954     ]
1955   },
1957   "LidCloseAction": {
1958     "os": ["chromeos"],
1959     "test_policy": { "LidCloseAction": 0 },
1960     "pref_mappings": [
1961       { "pref": "power.lid_closed_action" }
1962     ]
1963   },
1965   "PowerManagementUsesAudioActivity": {
1966     "os": ["chromeos"],
1967     "test_policy": { "PowerManagementUsesAudioActivity": true },
1968     "pref_mappings": [
1969       { "pref": "power.use_audio_activity" }
1970     ]
1971   },
1973   "PowerManagementUsesVideoActivity": {
1974     "os": ["chromeos"],
1975     "test_policy": { "PowerManagementUsesVideoActivity": true },
1976     "pref_mappings": [
1977       { "pref": "power.use_video_activity" }
1978     ]
1979   },
1981   "PresentationIdleDelayScale": {
1982   },
1984   "PresentationScreenDimDelayScale": {
1985     "os": ["chromeos"],
1986     "test_policy": { "PresentationScreenDimDelayScale": 200 },
1987     "pref_mappings": [
1988       { "pref": "power.presentation_screen_dim_delay_factor" }
1989     ]
1990   },
1992   "AllowScreenWakeLocks": {
1993     "os": ["chromeos"],
1994     "test_policy": { "AllowScreenWakeLocks": false },
1995     "pref_mappings": [
1996       { "pref": "power.allow_screen_wake_locks" }
1997     ]
1998   },
2000   "UserActivityScreenDimDelayScale": {
2001     "os": ["chromeos"],
2002     "test_policy": { "UserActivityScreenDimDelayScale": 200 },
2003     "pref_mappings": [
2004       { "pref": "power.user_activity_screen_dim_delay_factor" }
2005     ]
2006   },
2008   "WaitForInitialUserActivity": {
2009     "os": ["chromeos"],
2010     "test_policy": { "WaitForInitialUserActivity": true },
2011     "pref_mappings": [
2012       { "pref": "session.wait_for_initial_user_activity",
2013         "local_state": true },
2014       { "pref": "power.wait_for_initial_user_activity" }
2015     ]
2016   },
2018   "PowerManagementIdleSettings": {
2019     "os": ["chromeos"],
2020     "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"} } },
2021     "pref_mappings": [
2022       { "pref": "power.ac_screen_dim_delay_ms" },
2023       { "pref": "power.ac_screen_off_delay_ms" },
2024       { "pref": "power.ac_idle_warning_delay_ms" },
2025       { "pref": "power.ac_idle_delay_ms" },
2026       { "pref": "power.battery_screen_dim_delay_ms" },
2027       { "pref": "power.battery_screen_off_delay_ms" },
2028       { "pref": "power.battery_idle_warning_delay_ms" },
2029       { "pref": "power.battery_idle_delay_ms" }
2030     ]
2031   },
2033   "ScreenLockDelays": {
2034     "os": ["chromeos"],
2035     "test_policy": { "ScreenLockDelays": { "AC": 6000, "Battery": 2000 } },
2036     "pref_mappings": [
2037       { "pref": "power.ac_screen_lock_delay_ms" },
2038       { "pref": "power.battery_screen_lock_delay_ms" }
2039     ]
2040   },
2042   "TermsOfServiceURL": {
2043     "os": ["chromeos"],
2044     "test_policy": { "TermsOfServiceURL": "http://www.example.com/terms_of_service.txt" },
2045     "pref_mappings": [
2046       { "pref": "terms_of_service.url" }
2047     ]
2048   },
2050   "ShowAccessibilityOptionsInSystemTrayMenu": {
2051     "os": ["chromeos"],
2052     "test_policy": { "ShowAccessibilityOptionsInSystemTrayMenu": true },
2053     "pref_mappings": [
2054       { "pref": "settings.a11y.enable_menu",
2055         "indicator_tests": [
2056           { "policy": { "ShowAccessibilityOptionsInSystemTrayMenu": true } }
2057         ]
2058       }
2059     ]
2060   },
2062   "LargeCursorEnabled": {
2063     "os": ["chromeos"],
2064     "test_policy": { "LargeCursorEnabled": true },
2065     "pref_mappings": [
2066       { "pref": "settings.a11y.large_cursor_enabled",
2067         "indicator_tests": [
2068           { "policy": { "LargeCursorEnabled": true } }
2069         ]
2070       }
2071     ]
2072   },
2074   "SpokenFeedbackEnabled": {
2075     "os": ["chromeos"],
2076     "test_policy": { "SpokenFeedbackEnabled": true },
2077     "pref_mappings": [
2078       { "pref": "settings.accessibility",
2079         "indicator_tests": [
2080           { "policy": { "SpokenFeedbackEnabled": true } }
2081         ]
2082       }
2083     ]
2084   },
2086   "HighContrastEnabled": {
2087     "os": ["chromeos"],
2088     "test_policy": { "HighContrastEnabled": true },
2089     "pref_mappings": [
2090       { "pref": "settings.a11y.high_contrast_enabled",
2091         "indicator_tests": [
2092           { "policy": { "HighContrastEnabled": true } }
2093         ]
2094       }
2095     ]
2096   },
2098   "ScreenMagnifierType": {
2099     "os": ["chromeos"],
2100     "test_policy": { "ScreenMagnifierType": 1 },
2101     "pref_mappings": [
2102       { "pref": "settings.a11y.screen_magnifier",
2103         "indicator_tests": [
2104           { "policy": { "ScreenMagnifierType": 1 } }
2105         ]
2106       },
2107       { "pref": "settings.a11y.screen_magnifier_type2" }
2108     ]
2109   },
2111   "VirtualKeyboardEnabled": {
2112     "os": ["chromeos"],
2113     "test_policy": { "VirtualKeyboardEnabled": true },
2114     "pref_mappings": [
2115       { "pref": "settings.a11y.virtual_keyboard",
2116         "indicator_tests": [
2117           { "policy": { "VirtualKeyboardEnabled": true } }
2118         ]
2119       }
2120     ]
2121   },
2123   "KeyboardDefaultToFunctionKeys": {
2124     "os": ["chromeos"],
2125     "test_policy": { "KeyboardDefaultToFunctionKeys": true },
2126     "pref_mappings": [
2127       { "pref": "settings.language.send_function_keys",
2128         "indicator_tests": [
2129           { "policy": { "KeyboardDefaultToFunctionKeys": true } }
2130         ]
2131       }
2132     ]
2133   },
2135   "AttestationEnabledForUser": {
2136     "os": ["chromeos"],
2137     "test_policy": { "AttestationEnabledForUser": true },
2138     "pref_mappings": [
2139       { "pref": "attestation.enabled" }
2140     ]
2141   },
2143   "AttestationExtensionWhitelist": {
2144     "os": ["chromeos"],
2145     "test_policy": { "AttestationExtensionWhitelist": ["test_ext_id1", "test_ext_id2"] },
2146     "pref_mappings": [
2147       { "pref": "attestation.extension_whitelist" }
2148     ]
2149   },
2151   "ContentPackDefaultFilteringBehavior": {
2152   },
2154   "ContentPackManualBehaviorHosts": {
2155   },
2157   "ContentPackManualBehaviorURLs": {
2158   },
2160   "ManagedBookmarks": {
2161   },
2163   "FullscreenAllowed": {
2164     "os": ["win", "linux", "chromeos"],
2165     "test_policy": { "FullscreenAllowed": false },
2166     "pref_mappings": [
2167       { "pref": "fullscreen.allowed" },
2168       { "pref": "apps.fullscreen.allowed" }
2169     ]
2170   },
2172   "ChromeOsMultiProfileUserBehavior": {
2173     "os": ["chromeos"],
2174     "test_policy": { "ChromeOsMultiProfileUserBehavior": "unrestricted" },
2175     "pref_mappings": [
2176       { "pref": "settings.multiprofile_user_behavior" }
2177     ]
2178   },
2180   "NativeMessagingBlacklist": {
2181     "os": ["win", "linux", "mac"],
2182     "test_policy": { "NativeMessagingBlacklist": ["*"] },
2183     "pref_mappings": [
2184       { "pref": "native_messaging.blacklist" }
2185     ]
2186   },
2188   "NativeMessagingWhitelist": {
2189     "os": ["win", "linux", "mac"],
2190     "test_policy": { "NativeMessagingWhitelist": ["native.messaging.host.name"] },
2191     "pref_mappings": [
2192       { "pref": "native_messaging.whitelist" }
2193     ]
2194   },
2196   "NativeMessagingUserLevelHosts": {
2197     "os": ["win", "linux", "mac"],
2198     "test_policy": { "NativeMessagingUserLevelHosts": false },
2199     "pref_mappings": [
2200       { "pref": "native_messaging.user_level_hosts" }
2201     ]
2202   },
2204   "EnableDeprecatedWebPlatformFeatures": {
2205     "os": ["win", "linux", "mac", "chromeos"],
2206     "test_policy": {
2207       "EnableDeprecatedWebPlatformFeatures": [
2208         "ShowModalDialog_EffectiveUntil20150430"
2209       ]
2210     },
2211     "pref_mappings": [
2212       { "pref": "enable_deprecated_web_platform_features" }
2213     ]
2214   },
2216   "TouchVirtualKeyboardEnabled": {
2217     "os": ["chromeos"],
2218     "test_policy": { "TouchVirtualKeyboardEnabled": false },
2219     "pref_mappings": [
2220       { "pref": "ui.touch_virtual_keyboard_enabled" }
2221     ]
2222   },
2224   "EasyUnlockAllowed": {
2225     "os": ["chromeos"],
2226     "test_policy": { "EasyUnlockAllowed": false },
2227     "pref_mappings": [
2228       { "pref": "easy_unlock.allowed" }
2229     ]
2230   },
2232   "SessionLocales": {
2233     "os": ["chromeos"],
2234     "can_be_recommended": true
2235   },
2237   "ForceMaximizeOnFirstRun": {
2238     "os": ["chromeos"],
2239     "test_policy": { "ForceMaximizeOnFirstRun": true },
2240     "pref_mappings": [
2241       { "pref": "ui.force_maximize_on_first_run" }
2242     ]
2243   },
2245   "SSLErrorOverrideAllowed": {
2246     "os": ["win", "linux", "mac", "chromeos"],
2247     "test_policy": { "SSLErrorOverrideAllowed": true },
2248     "pref_mappings": [
2249       { "pref": "ssl.error_override_allowed" }
2250     ]
2251   },
2253   "KeyPermissions": {
2254   },
2256   "HardwareAccelerationModeEnabled": {
2257     "os": ["win", "linux", "mac"],
2258     "test_policy": { "HardwareAccelerationModeEnabled": true },
2259     "pref_mappings": [
2260       { "pref": "hardware_acceleration_mode.enabled",
2261         "local_state": true,
2262         "indicator_tests": [
2263           { "policy": { "HardwareAccelerationModeEnabled": true } },
2264           { "policy": { "HardwareAccelerationModeEnabled": false } }
2265         ]
2266       }
2267     ]
2268   },
2270   "----- Chrome OS device policies ---------------------------------------": {},
2272   "DevicePolicyRefreshRate": {
2273     "os": ["chromeos"],
2274     "test_policy": { "DevicePolicyRefreshRate": 300000 },
2275     "pref_mappings": [
2276       { "pref": "policy.device_refresh_rate",
2277         "local_state": true }
2278     ]
2279   },
2281   "ChromeOsReleaseChannel": {
2282   },
2284   "ChromeOsReleaseChannelDelegated": {
2285   },
2287   "DeviceOpenNetworkConfiguration": {
2288   },
2290   "HeartbeatEnabled": {
2291   },
2293   "HeartbeatFrequency": {
2294   },
2296   "ReportDeviceVersionInfo": {
2297   },
2299   "ReportDeviceActivityTimes": {
2300   },
2302   "ReportDeviceBootMode": {
2303   },
2305   "ReportDeviceNetworkInterfaces": {
2306   },
2308   "ReportDeviceUsers": {
2309   },
2311   "ReportDeviceHardwareStatus": {
2312   },
2314   "ReportDeviceSessionStatus": {
2315   },
2317   "ReportUploadFrequency": {
2318   },
2320   "DeviceAllowNewUsers": {
2321   },
2323   "DeviceUserWhitelist": {
2324   },
2326   "DeviceGuestModeEnabled": {
2327   },
2329   "DeviceShowUserNamesOnSignin": {
2330   },
2332   "DeviceDataRoamingEnabled": {
2333   },
2335   "DeviceMetricsReportingEnabled": {
2336     "os": ["chromeos"],
2337     "official_only": true,
2338     "test_policy": { "DeviceMetricsReportingEnabled": true },
2339     "pref_mappings": [
2340       { "pref": "cros.metrics.reportingEnabled",
2341         "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}]);});",
2342         "indicator_tests": [
2343           { "policy": { "SpellCheckServiceEnabled": true } }
2344         ]
2345       }
2346     ],
2348     "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."
2349   },
2351   "DeviceEphemeralUsersEnabled": {
2352   },
2354   "DeviceRebootOnShutdown": {
2355   },
2357   "DeviceIdleLogoutTimeout": {
2358   },
2360   "DeviceIdleLogoutWarningDuration": {
2361   },
2363   "DeviceLoginScreenSaverId": {
2364   },
2366   "DeviceLoginScreenSaverTimeout": {
2367   },
2369   "DeviceStartUpUrls": {
2370   },
2372   "DeviceAppPack": {
2373   },
2375   "DeviceAutoUpdateDisabled": {
2376   },
2378   "DeviceAutoUpdateP2PEnabled": {
2379   },
2381   "DeviceTargetVersionPrefix": {
2382   },
2384   "DeviceUpdateScatterFactor": {
2385   },
2387   "DeviceUpdateAllowedConnectionTypes": {
2388   },
2390   "DeviceUpdateHttpDownloadsEnabled": {
2391   },
2393   "ReportDeviceLocation": {
2394   },
2396   "SystemTimezone": {
2397   },
2399   "SystemUse24HourClock": {
2400   },
2402   "DeviceLocalAccounts": {
2403   },
2405   "DeviceLocalAccountAutoLoginId": {
2406   },
2408   "DeviceLocalAccountAutoLoginDelay": {
2409   },
2411   "DeviceLocalAccountAutoLoginBailoutEnabled": {
2412   },
2414   "DeviceLocalAccountPromptForNetworkWhenOffline": {
2415   },
2417   "DeviceBlockDevmode": {
2418   },
2420   "DeviceLoginScreenPowerManagement": {
2421   },
2423   "DeviceAllowRedeemChromeOsRegistrationOffers": {
2424   },
2426   "DeviceStartUpFlags": {
2427   },
2429   "DeviceVariationsRestrictParameter" : {
2430   },
2432   "DeviceLoginScreenDefaultLargeCursorEnabled" : {
2433   },
2435   "DeviceLoginScreenDefaultSpokenFeedbackEnabled" : {
2436   },
2438   "DeviceLoginScreenDefaultHighContrastEnabled" : {
2439   },
2441   "DeviceLoginScreenDefaultScreenMagnifierType" : {
2442   },
2444   "DeviceLoginScreenDefaultVirtualKeyboardEnabled" : {
2445   },
2447   "UptimeLimit": {
2448   },
2450   "RebootAfterUpdate": {
2451   },
2453   "AttestationEnabledForDevice": {
2454   },
2456   "AttestationForContentProtectionEnabled": {
2457   },
2459   "SupervisedUsersEnabled": {
2460   },
2462   "SupervisedUserCreationEnabled": {
2463   },
2465   "AutoCleanUpStrategy": {
2466   },
2468   "DeviceTransferSAMLCookies": {
2469   },
2471   "ExtensionCacheSize": {
2472   },
2474   "DeviceLoginScreenDomainAutoComplete": {
2475   },
2477   "----- Chrome Frame policies -------------------------------------------": {},
2479   "ChromeFrameRendererSettings": {
2480   },
2482   "RenderInChromeFrameList": {
2483   },
2485   "RenderInHostList": {
2486   },
2488   "ChromeFrameContentTypes": {
2489   },
2491   "GCFUserDataDir": {
2492   },
2494   "AdditionalLaunchParameters": {
2495   },
2497   "SuppressChromeFrameTurndownPrompt": {
2498   },
2500   "SkipMetadataCheck": {
2501   }