Chromium Code Reviews| 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 "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/browser/net/proxy_policy_handler.h" | 11 #include "chrome/browser/net/proxy_policy_handler.h" |
| 12 #include "chrome/browser/policy/managed_bookmarks_policy_handler.h" | 12 #include "chrome/browser/policy/managed_bookmarks_policy_handler.h" |
| 13 #include "chrome/browser/profiles/incognito_mode_policy_handler.h" | 13 #include "chrome/browser/profiles/incognito_mode_policy_handler.h" |
| 14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
| 15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
| 16 #include "components/password_manager/core/common/password_manager_pref_names.h" | 16 #include "components/password_manager/core/common/password_manager_pref_names.h" |
| 17 #include "components/policy/core/browser/autofill_policy_handler.h" | 17 #include "components/policy/core/browser/autofill_policy_handler.h" |
| 18 #include "components/policy/core/browser/configuration_policy_handler.h" | 18 #include "components/policy/core/browser/configuration_policy_handler.h" |
| 19 #include "components/policy/core/browser/configuration_policy_handler_list.h" | 19 #include "components/policy/core/browser/configuration_policy_handler_list.h" |
| 20 #include "components/policy/core/browser/configuration_policy_handler_parameters .h" | 20 #include "components/policy/core/browser/configuration_policy_handler_parameters .h" |
| 21 #include "components/policy/core/browser/url_blacklist_policy_handler.h" | 21 #include "components/policy/core/browser/url_blacklist_policy_handler.h" |
| 22 #include "components/policy/core/common/policy_details.h" | 22 #include "components/policy/core/common/policy_details.h" |
| 23 #include "components/policy/core/common/policy_map.h" | 23 #include "components/policy/core/common/policy_map.h" |
| 24 #include "components/policy/core/common/policy_pref_names.h" | 24 #include "components/policy/core/common/policy_pref_names.h" |
| 25 #include "components/policy/core/common/schema.h" | 25 #include "components/policy/core/common/schema.h" |
| 26 #include "components/rappor/rappor_pref_names.h" | |
| 26 #include "components/search_engines/default_search_policy_handler.h" | 27 #include "components/search_engines/default_search_policy_handler.h" |
| 27 #include "components/translate/core/common/translate_pref_names.h" | 28 #include "components/translate/core/common/translate_pref_names.h" |
| 28 #include "policy/policy_constants.h" | 29 #include "policy/policy_constants.h" |
| 29 | 30 |
| 30 #if defined(OS_ANDROID) | 31 #if defined(OS_ANDROID) |
| 31 #include "chrome/browser/search/contextual_search_policy_handler_android.h" | 32 #include "chrome/browser/search/contextual_search_policy_handler_android.h" |
| 32 #endif | 33 #endif |
| 33 | 34 |
| 34 #if !defined(OS_IOS) | 35 #if !defined(OS_IOS) |
| 35 #include "chrome/browser/net/disk_cache_dir_policy_handler.h" | 36 #include "chrome/browser/net/disk_cache_dir_policy_handler.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 112 base::Value::TYPE_BOOLEAN }, | 113 base::Value::TYPE_BOOLEAN }, |
| 113 { key::kPrintingEnabled, | 114 { key::kPrintingEnabled, |
| 114 prefs::kPrintingEnabled, | 115 prefs::kPrintingEnabled, |
| 115 base::Value::TYPE_BOOLEAN }, | 116 base::Value::TYPE_BOOLEAN }, |
| 116 { key::kDisablePrintPreview, | 117 { key::kDisablePrintPreview, |
| 117 prefs::kPrintPreviewDisabled, | 118 prefs::kPrintPreviewDisabled, |
| 118 base::Value::TYPE_BOOLEAN }, | 119 base::Value::TYPE_BOOLEAN }, |
| 119 { key::kMetricsReportingEnabled, | 120 { key::kMetricsReportingEnabled, |
| 120 prefs::kMetricsReportingEnabled, | 121 prefs::kMetricsReportingEnabled, |
| 121 base::Value::TYPE_BOOLEAN }, | 122 base::Value::TYPE_BOOLEAN }, |
| 123 { key::kMetricsReportingEnabled, | |
| 124 rappor::prefs::kRapporEnabled, | |
| 125 base::Value::TYPE_BOOLEAN }, | |
|
Mattias Nissler (ping if slow)
2015/02/10 08:38:15
We need to be careful here w.r.t. installations th
| |
| 122 { key::kApplicationLocaleValue, | 126 { key::kApplicationLocaleValue, |
| 123 prefs::kApplicationLocale, | 127 prefs::kApplicationLocale, |
| 124 base::Value::TYPE_STRING }, | 128 base::Value::TYPE_STRING }, |
| 125 { key::kDisabledPlugins, | 129 { key::kDisabledPlugins, |
| 126 prefs::kPluginsDisabledPlugins, | 130 prefs::kPluginsDisabledPlugins, |
| 127 base::Value::TYPE_LIST }, | 131 base::Value::TYPE_LIST }, |
| 128 { key::kDisabledPluginsExceptions, | 132 { key::kDisabledPluginsExceptions, |
| 129 prefs::kPluginsDisabledPluginsExceptions, | 133 prefs::kPluginsDisabledPluginsExceptions, |
| 130 base::Value::TYPE_LIST }, | 134 base::Value::TYPE_LIST }, |
| 131 { key::kEnabledPlugins, | 135 { key::kEnabledPlugins, |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 792 chrome_schema, | 796 chrome_schema, |
| 793 SCHEMA_STRICT, | 797 SCHEMA_STRICT, |
| 794 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 798 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
| 795 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 799 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
| 796 #endif // defined(OS_CHROMEOS) | 800 #endif // defined(OS_CHROMEOS) |
| 797 | 801 |
| 798 return handlers.Pass(); | 802 return handlers.Pass(); |
| 799 } | 803 } |
| 800 | 804 |
| 801 } // namespace policy | 805 } // namespace policy |
| OLD | NEW |