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