OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h" | 5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h" |
6 | 6 |
7 #include <limits.h> | 7 #include <limits.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/browser/policy/network_prediction_policy_handler.h" | 22 #include "chrome/browser/policy/network_prediction_policy_handler.h" |
23 #include "chrome/browser/profiles/incognito_mode_policy_handler.h" | 23 #include "chrome/browser/profiles/incognito_mode_policy_handler.h" |
24 #include "chrome/browser/sessions/restore_on_startup_policy_handler.h" | 24 #include "chrome/browser/sessions/restore_on_startup_policy_handler.h" |
25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
26 #include "chrome/common/features.h" | 26 #include "chrome/common/features.h" |
27 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
28 #include "components/bookmarks/common/bookmark_pref_names.h" | 28 #include "components/bookmarks/common/bookmark_pref_names.h" |
29 #include "components/certificate_transparency/pref_names.h" | 29 #include "components/certificate_transparency/pref_names.h" |
30 #include "components/content_settings/core/common/pref_names.h" | 30 #include "components/content_settings/core/common/pref_names.h" |
31 #include "components/metrics/metrics_pref_names.h" | 31 #include "components/metrics/metrics_pref_names.h" |
| 32 #include "components/ntp_snippets/pref_names.h" |
32 #include "components/password_manager/core/common/password_manager_pref_names.h" | 33 #include "components/password_manager/core/common/password_manager_pref_names.h" |
33 #include "components/policy/core/browser/autofill_policy_handler.h" | 34 #include "components/policy/core/browser/autofill_policy_handler.h" |
34 #include "components/policy/core/browser/configuration_policy_handler.h" | 35 #include "components/policy/core/browser/configuration_policy_handler.h" |
35 #include "components/policy/core/browser/configuration_policy_handler_list.h" | 36 #include "components/policy/core/browser/configuration_policy_handler_list.h" |
36 #include "components/policy/core/browser/configuration_policy_handler_parameters
.h" | 37 #include "components/policy/core/browser/configuration_policy_handler_parameters
.h" |
37 #include "components/policy/core/browser/proxy_policy_handler.h" | 38 #include "components/policy/core/browser/proxy_policy_handler.h" |
38 #include "components/policy/core/browser/url_blacklist_policy_handler.h" | 39 #include "components/policy/core/browser/url_blacklist_policy_handler.h" |
39 #include "components/policy/core/common/policy_details.h" | 40 #include "components/policy/core/common/policy_details.h" |
40 #include "components/policy/core/common/policy_map.h" | 41 #include "components/policy/core/common/policy_map.h" |
41 #include "components/policy/core/common/policy_pref_names.h" | 42 #include "components/policy/core/common/policy_pref_names.h" |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 base::Value::TYPE_STRING }, | 384 base::Value::TYPE_STRING }, |
384 { key::kSupervisedUserCreationEnabled, | 385 { key::kSupervisedUserCreationEnabled, |
385 prefs::kSupervisedUserCreationAllowed, | 386 prefs::kSupervisedUserCreationAllowed, |
386 base::Value::TYPE_BOOLEAN }, | 387 base::Value::TYPE_BOOLEAN }, |
387 { key::kForceEphemeralProfiles, | 388 { key::kForceEphemeralProfiles, |
388 prefs::kForceEphemeralProfiles, | 389 prefs::kForceEphemeralProfiles, |
389 base::Value::TYPE_BOOLEAN }, | 390 base::Value::TYPE_BOOLEAN }, |
390 { key::kDHEEnabled, | 391 { key::kDHEEnabled, |
391 ssl_config::prefs::kDHEEnabled, | 392 ssl_config::prefs::kDHEEnabled, |
392 base::Value::TYPE_BOOLEAN }, | 393 base::Value::TYPE_BOOLEAN }, |
| 394 { key::kNTPContentSuggestionsEnabled, |
| 395 ntp_snippets::prefs::kEnableSnippets, |
| 396 base::Value::TYPE_BOOLEAN }, |
393 #if defined(ENABLE_MEDIA_ROUTER) | 397 #if defined(ENABLE_MEDIA_ROUTER) |
394 { key::kEnableMediaRouter, | 398 { key::kEnableMediaRouter, |
395 prefs::kEnableMediaRouter, | 399 prefs::kEnableMediaRouter, |
396 base::Value::TYPE_BOOLEAN }, | 400 base::Value::TYPE_BOOLEAN }, |
397 #endif // defined(ENABLE_MEDIA_ROUTER) | 401 #endif // defined(ENABLE_MEDIA_ROUTER) |
398 #if !defined(OS_MACOSX) | 402 #if !defined(OS_MACOSX) |
399 { key::kFullscreenAllowed, | 403 { key::kFullscreenAllowed, |
400 prefs::kFullscreenAllowed, | 404 prefs::kFullscreenAllowed, |
401 base::Value::TYPE_BOOLEAN }, | 405 base::Value::TYPE_BOOLEAN }, |
402 #if defined(ENABLE_EXTENSIONS) | 406 #if defined(ENABLE_EXTENSIONS) |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 863 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
860 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 864 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
861 handlers->AddHandler(base::WrapUnique( | 865 handlers->AddHandler(base::WrapUnique( |
862 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); | 866 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); |
863 #endif // defined(OS_CHROMEOS) | 867 #endif // defined(OS_CHROMEOS) |
864 | 868 |
865 return handlers; | 869 return handlers; |
866 } | 870 } |
867 | 871 |
868 } // namespace policy | 872 } // namespace policy |
OLD | NEW |