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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
570 base::Value::TYPE_INTEGER }, | 571 base::Value::TYPE_INTEGER }, |
571 #endif | 572 #endif |
572 | 573 |
573 { key::kTaskManagerEndProcessEnabled, | 574 { key::kTaskManagerEndProcessEnabled, |
574 prefs::kTaskManagerEndProcessEnabled, | 575 prefs::kTaskManagerEndProcessEnabled, |
575 base::Value::TYPE_BOOLEAN }, | 576 base::Value::TYPE_BOOLEAN }, |
576 | 577 |
577 #if defined(OS_CHROMEOS) | 578 #if defined(OS_CHROMEOS) |
578 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, | 579 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, |
579 #endif | 580 #endif |
581 | |
582 { key::kNTPContentSuggestionsEnabled, | |
Thiemo Nagel
2016/07/29 16:10:46
Nit: Please move above to join the rest of the non
Marc Treib
2016/08/01 08:20:13
Done.
| |
583 ntp_snippets::prefs::kEnableSnippets, | |
584 base::Value::TYPE_BOOLEAN }, | |
580 }; | 585 }; |
581 | 586 |
582 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { | 587 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { |
583 public: | 588 public: |
584 ForceSafeSearchPolicyHandler() | 589 ForceSafeSearchPolicyHandler() |
585 : TypeCheckingPolicyHandler(key::kForceSafeSearch, | 590 : TypeCheckingPolicyHandler(key::kForceSafeSearch, |
586 base::Value::TYPE_BOOLEAN) {} | 591 base::Value::TYPE_BOOLEAN) {} |
587 ~ForceSafeSearchPolicyHandler() override {} | 592 ~ForceSafeSearchPolicyHandler() override {} |
588 | 593 |
589 // ConfigurationPolicyHandler implementation: | 594 // ConfigurationPolicyHandler implementation: |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
859 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 864 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
860 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 865 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
861 handlers->AddHandler(base::WrapUnique( | 866 handlers->AddHandler(base::WrapUnique( |
862 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); | 867 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); |
863 #endif // defined(OS_CHROMEOS) | 868 #endif // defined(OS_CHROMEOS) |
864 | 869 |
865 return handlers; | 870 return handlers; |
866 } | 871 } |
867 | 872 |
868 } // namespace policy | 873 } // namespace policy |
OLD | NEW |