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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "components/policy/policy_constants.h" | 44 #include "components/policy/policy_constants.h" |
45 #include "components/prefs/pref_value_map.h" | 45 #include "components/prefs/pref_value_map.h" |
46 #include "components/search_engines/default_search_policy_handler.h" | 46 #include "components/search_engines/default_search_policy_handler.h" |
47 #include "components/signin/core/common/signin_pref_names.h" | 47 #include "components/signin/core/common/signin_pref_names.h" |
48 #include "components/spellcheck/spellcheck_build_features.h" | 48 #include "components/spellcheck/spellcheck_build_features.h" |
49 #include "components/ssl_config/ssl_config_prefs.h" | 49 #include "components/ssl_config/ssl_config_prefs.h" |
50 #include "components/sync/driver/sync_policy_handler.h" | 50 #include "components/sync/driver/sync_policy_handler.h" |
51 #include "components/translate/core/common/translate_pref_names.h" | 51 #include "components/translate/core/common/translate_pref_names.h" |
52 #include "components/variations/pref_names.h" | 52 #include "components/variations/pref_names.h" |
53 #include "extensions/features/features.h" | 53 #include "extensions/features/features.h" |
| 54 #include "media/media_features.h" |
54 #include "ppapi/features/features.h" | 55 #include "ppapi/features/features.h" |
55 | 56 |
56 #if BUILDFLAG(ANDROID_JAVA_UI) | 57 #if BUILDFLAG(ANDROID_JAVA_UI) |
57 #include "chrome/browser/search/contextual_search_policy_handler_android.h" | 58 #include "chrome/browser/search/contextual_search_policy_handler_android.h" |
58 #endif | 59 #endif |
59 | 60 |
60 #if defined(OS_CHROMEOS) | 61 #if defined(OS_CHROMEOS) |
61 #include "ash/common/accessibility_types.h" | 62 #include "ash/common/accessibility_types.h" |
62 #include "chrome/browser/chromeos/platform_keys/key_permissions_policy_handler.h
" | 63 #include "chrome/browser/chromeos/platform_keys/key_permissions_policy_handler.h
" |
63 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
" | 64 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
" |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 ssl_config::prefs::kDHEEnabled, | 405 ssl_config::prefs::kDHEEnabled, |
405 base::Value::TYPE_BOOLEAN }, | 406 base::Value::TYPE_BOOLEAN }, |
406 { key::kNTPContentSuggestionsEnabled, | 407 { key::kNTPContentSuggestionsEnabled, |
407 ntp_snippets::prefs::kEnableSnippets, | 408 ntp_snippets::prefs::kEnableSnippets, |
408 base::Value::TYPE_BOOLEAN }, | 409 base::Value::TYPE_BOOLEAN }, |
409 #if defined(ENABLE_MEDIA_ROUTER) | 410 #if defined(ENABLE_MEDIA_ROUTER) |
410 { key::kEnableMediaRouter, | 411 { key::kEnableMediaRouter, |
411 prefs::kEnableMediaRouter, | 412 prefs::kEnableMediaRouter, |
412 base::Value::TYPE_BOOLEAN }, | 413 base::Value::TYPE_BOOLEAN }, |
413 #endif // defined(ENABLE_MEDIA_ROUTER) | 414 #endif // defined(ENABLE_MEDIA_ROUTER) |
414 #if defined(ENABLE_WEBRTC) | 415 #if BUILDFLAG(ENABLE_WEBRTC) |
415 { key::kWebRtcUdpPortRange, | 416 { key::kWebRtcUdpPortRange, |
416 prefs::kWebRTCUDPPortRange, | 417 prefs::kWebRTCUDPPortRange, |
417 base::Value::TYPE_STRING }, | 418 base::Value::TYPE_STRING }, |
418 #endif // defined(ENABLE_WEBRTC) | 419 #endif // BUILDFLAG(ENABLE_WEBRTC) |
419 #if !defined(OS_MACOSX) | 420 #if !defined(OS_MACOSX) |
420 { key::kFullscreenAllowed, | 421 { key::kFullscreenAllowed, |
421 prefs::kFullscreenAllowed, | 422 prefs::kFullscreenAllowed, |
422 base::Value::TYPE_BOOLEAN }, | 423 base::Value::TYPE_BOOLEAN }, |
423 #if BUILDFLAG(ENABLE_EXTENSIONS) | 424 #if BUILDFLAG(ENABLE_EXTENSIONS) |
424 { key::kFullscreenAllowed, | 425 { key::kFullscreenAllowed, |
425 extensions::pref_names::kAppFullscreenAllowed, | 426 extensions::pref_names::kAppFullscreenAllowed, |
426 base::Value::TYPE_BOOLEAN }, | 427 base::Value::TYPE_BOOLEAN }, |
427 #endif // BUILDFLAG(ENABLE_EXTENSIONS) | 428 #endif // BUILDFLAG(ENABLE_EXTENSIONS) |
428 #endif // !defined(OS_MACOSX) | 429 #endif // !defined(OS_MACOSX) |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 #endif // defined(OS_CHROMEOS) | 929 #endif // defined(OS_CHROMEOS) |
929 | 930 |
930 #if BUILDFLAG(ENABLE_PLUGINS) | 931 #if BUILDFLAG(ENABLE_PLUGINS) |
931 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); | 932 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); |
932 #endif // BUILDFLAG(ENABLE_PLUGINS) | 933 #endif // BUILDFLAG(ENABLE_PLUGINS) |
933 | 934 |
934 return handlers; | 935 return handlers; |
935 } | 936 } |
936 | 937 |
937 } // namespace policy | 938 } // namespace policy |
OLD | NEW |