Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_list_factory.cc

Issue 1320533007: Componentize ssl_config_service_manager_pref.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed pref_service_mock_factory.h dependency from unittest Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/prefs/pref_value_map.h" 10 #include "base/prefs/pref_value_map.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/net/proxy_policy_handler.h" 12 #include "chrome/browser/net/proxy_policy_handler.h"
13 #include "chrome/browser/policy/managed_bookmarks_policy_handler.h" 13 #include "chrome/browser/policy/managed_bookmarks_policy_handler.h"
14 #include "chrome/browser/profiles/incognito_mode_policy_handler.h" 14 #include "chrome/browser/profiles/incognito_mode_policy_handler.h"
15 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
16 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
17 #include "components/content_settings/core/common/pref_names.h" 17 #include "components/content_settings/core/common/pref_names.h"
18 #include "components/password_manager/core/common/password_manager_pref_names.h" 18 #include "components/password_manager/core/common/password_manager_pref_names.h"
19 #include "components/policy/core/browser/autofill_policy_handler.h" 19 #include "components/policy/core/browser/autofill_policy_handler.h"
20 #include "components/policy/core/browser/configuration_policy_handler.h" 20 #include "components/policy/core/browser/configuration_policy_handler.h"
21 #include "components/policy/core/browser/configuration_policy_handler_list.h" 21 #include "components/policy/core/browser/configuration_policy_handler_list.h"
22 #include "components/policy/core/browser/configuration_policy_handler_parameters .h" 22 #include "components/policy/core/browser/configuration_policy_handler_parameters .h"
23 #include "components/policy/core/browser/url_blacklist_policy_handler.h" 23 #include "components/policy/core/browser/url_blacklist_policy_handler.h"
24 #include "components/policy/core/common/policy_details.h" 24 #include "components/policy/core/common/policy_details.h"
25 #include "components/policy/core/common/policy_map.h" 25 #include "components/policy/core/common/policy_map.h"
26 #include "components/policy/core/common/policy_pref_names.h" 26 #include "components/policy/core/common/policy_pref_names.h"
27 #include "components/policy/core/common/schema.h" 27 #include "components/policy/core/common/schema.h"
28 #include "components/search_engines/default_search_policy_handler.h" 28 #include "components/search_engines/default_search_policy_handler.h"
29 #include "components/ssl_config/ssl_config_prefs.h"
29 #include "components/translate/core/common/translate_pref_names.h" 30 #include "components/translate/core/common/translate_pref_names.h"
30 #include "components/variations/pref_names.h" 31 #include "components/variations/pref_names.h"
31 #include "policy/policy_constants.h" 32 #include "policy/policy_constants.h"
32 33
33 #if defined(OS_ANDROID) 34 #if defined(OS_ANDROID)
34 #include "chrome/browser/search/contextual_search_policy_handler_android.h" 35 #include "chrome/browser/search/contextual_search_policy_handler_android.h"
35 #endif 36 #endif
36 37
37 #if !defined(OS_IOS) 38 #if !defined(OS_IOS)
38 #include "chrome/browser/net/disk_cache_dir_policy_handler.h" 39 #include "chrome/browser/net/disk_cache_dir_policy_handler.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 { key::kDefaultNotificationsSetting, 206 { key::kDefaultNotificationsSetting,
206 prefs::kManagedDefaultNotificationsSetting, 207 prefs::kManagedDefaultNotificationsSetting,
207 base::Value::TYPE_INTEGER }, 208 base::Value::TYPE_INTEGER },
208 { key::kDefaultGeolocationSetting, 209 { key::kDefaultGeolocationSetting,
209 prefs::kManagedDefaultGeolocationSetting, 210 prefs::kManagedDefaultGeolocationSetting,
210 base::Value::TYPE_INTEGER }, 211 base::Value::TYPE_INTEGER },
211 { key::kSigninAllowed, 212 { key::kSigninAllowed,
212 prefs::kSigninAllowed, 213 prefs::kSigninAllowed,
213 base::Value::TYPE_BOOLEAN }, 214 base::Value::TYPE_BOOLEAN },
214 { key::kDisableSSLRecordSplitting, 215 { key::kDisableSSLRecordSplitting,
215 prefs::kDisableSSLRecordSplitting, 216 ssl_config::prefs::kDisableSSLRecordSplitting,
216 base::Value::TYPE_BOOLEAN }, 217 base::Value::TYPE_BOOLEAN },
217 { key::kEnableOnlineRevocationChecks, 218 { key::kEnableOnlineRevocationChecks,
218 prefs::kCertRevocationCheckingEnabled, 219 ssl_config::prefs::kCertRevocationCheckingEnabled,
219 base::Value::TYPE_BOOLEAN }, 220 base::Value::TYPE_BOOLEAN },
220 { key::kRequireOnlineRevocationChecksForLocalAnchors, 221 { key::kRequireOnlineRevocationChecksForLocalAnchors,
221 prefs::kCertRevocationCheckingRequiredLocalAnchors, 222 ssl_config::prefs::kCertRevocationCheckingRequiredLocalAnchors,
222 base::Value::TYPE_BOOLEAN }, 223 base::Value::TYPE_BOOLEAN },
223 { key::kAuthSchemes, 224 { key::kAuthSchemes,
224 prefs::kAuthSchemes, 225 prefs::kAuthSchemes,
225 base::Value::TYPE_STRING }, 226 base::Value::TYPE_STRING },
226 { key::kDisableAuthNegotiateCnameLookup, 227 { key::kDisableAuthNegotiateCnameLookup,
227 prefs::kDisableAuthNegotiateCnameLookup, 228 prefs::kDisableAuthNegotiateCnameLookup,
228 base::Value::TYPE_BOOLEAN }, 229 base::Value::TYPE_BOOLEAN },
229 { key::kEnableAuthNegotiatePort, 230 { key::kEnableAuthNegotiatePort,
230 prefs::kEnableAuthNegotiatePort, 231 prefs::kEnableAuthNegotiatePort,
231 base::Value::TYPE_BOOLEAN }, 232 base::Value::TYPE_BOOLEAN },
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 { key::kVariationsRestrictParameter, 360 { key::kVariationsRestrictParameter,
360 variations::prefs::kVariationsRestrictParameter, 361 variations::prefs::kVariationsRestrictParameter,
361 base::Value::TYPE_STRING }, 362 base::Value::TYPE_STRING },
362 { key::kSupervisedUserCreationEnabled, 363 { key::kSupervisedUserCreationEnabled,
363 prefs::kSupervisedUserCreationAllowed, 364 prefs::kSupervisedUserCreationAllowed,
364 base::Value::TYPE_BOOLEAN }, 365 base::Value::TYPE_BOOLEAN },
365 { key::kForceEphemeralProfiles, 366 { key::kForceEphemeralProfiles,
366 prefs::kForceEphemeralProfiles, 367 prefs::kForceEphemeralProfiles,
367 base::Value::TYPE_BOOLEAN }, 368 base::Value::TYPE_BOOLEAN },
368 { key::kSSLVersionFallbackMin, 369 { key::kSSLVersionFallbackMin,
369 prefs::kSSLVersionFallbackMin, 370 ssl_config::prefs::kSSLVersionFallbackMin,
370 base::Value::TYPE_STRING }, 371 base::Value::TYPE_STRING },
371 372
372 #if !defined(OS_MACOSX) && !defined(OS_IOS) 373 #if !defined(OS_MACOSX) && !defined(OS_IOS)
373 { key::kFullscreenAllowed, 374 { key::kFullscreenAllowed,
374 prefs::kFullscreenAllowed, 375 prefs::kFullscreenAllowed,
375 base::Value::TYPE_BOOLEAN }, 376 base::Value::TYPE_BOOLEAN },
376 #if defined(ENABLE_EXTENSIONS) 377 #if defined(ENABLE_EXTENSIONS)
377 { key::kFullscreenAllowed, 378 { key::kFullscreenAllowed,
378 extensions::pref_names::kAppFullscreenAllowed, 379 extensions::pref_names::kAppFullscreenAllowed,
379 base::Value::TYPE_BOOLEAN }, 380 base::Value::TYPE_BOOLEAN },
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 793 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
793 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 794 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
794 handlers->AddHandler(make_scoped_ptr( 795 handlers->AddHandler(make_scoped_ptr(
795 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); 796 new chromeos::KeyPermissionsPolicyHandler(chrome_schema)));
796 #endif // defined(OS_CHROMEOS) 797 #endif // defined(OS_CHROMEOS)
797 798
798 return handlers.Pass(); 799 return handlers.Pass();
799 } 800 }
800 801
801 } // namespace policy 802 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698