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

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

Issue 1414313002: Allow dynamic updating of authentication policies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move //base/prefs references out of net - part 1. Created 5 years, 1 month 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"
(...skipping 15 matching lines...) Expand all
26 #include "components/policy/core/browser/url_blacklist_policy_handler.h" 26 #include "components/policy/core/browser/url_blacklist_policy_handler.h"
27 #include "components/policy/core/common/policy_details.h" 27 #include "components/policy/core/common/policy_details.h"
28 #include "components/policy/core/common/policy_map.h" 28 #include "components/policy/core/common/policy_map.h"
29 #include "components/policy/core/common/policy_pref_names.h" 29 #include "components/policy/core/common/policy_pref_names.h"
30 #include "components/policy/core/common/schema.h" 30 #include "components/policy/core/common/schema.h"
31 #include "components/search_engines/default_search_policy_handler.h" 31 #include "components/search_engines/default_search_policy_handler.h"
32 #include "components/signin/core/common/signin_pref_names.h" 32 #include "components/signin/core/common/signin_pref_names.h"
33 #include "components/ssl_config/ssl_config_prefs.h" 33 #include "components/ssl_config/ssl_config_prefs.h"
34 #include "components/translate/core/common/translate_pref_names.h" 34 #include "components/translate/core/common/translate_pref_names.h"
35 #include "components/variations/pref_names.h" 35 #include "components/variations/pref_names.h"
36 #include "net/base/net_pref_names.h"
36 #include "policy/policy_constants.h" 37 #include "policy/policy_constants.h"
37 38
38 #if defined(OS_ANDROID) 39 #if defined(OS_ANDROID)
39 #include "chrome/browser/search/contextual_search_policy_handler_android.h" 40 #include "chrome/browser/search/contextual_search_policy_handler_android.h"
40 #endif 41 #endif
41 42
42 #if !defined(OS_IOS) 43 #if !defined(OS_IOS)
43 #include "chrome/browser/net/disk_cache_dir_policy_handler.h" 44 #include "chrome/browser/net/disk_cache_dir_policy_handler.h"
44 #include "chrome/browser/policy/file_selection_dialogs_policy_handler.h" 45 #include "chrome/browser/policy/file_selection_dialogs_policy_handler.h"
45 #include "chrome/browser/policy/javascript_policy_handler.h" 46 #include "chrome/browser/policy/javascript_policy_handler.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 { key::kSigninAllowed, 220 { key::kSigninAllowed,
220 prefs::kSigninAllowed, 221 prefs::kSigninAllowed,
221 base::Value::TYPE_BOOLEAN }, 222 base::Value::TYPE_BOOLEAN },
222 { key::kEnableOnlineRevocationChecks, 223 { key::kEnableOnlineRevocationChecks,
223 ssl_config::prefs::kCertRevocationCheckingEnabled, 224 ssl_config::prefs::kCertRevocationCheckingEnabled,
224 base::Value::TYPE_BOOLEAN }, 225 base::Value::TYPE_BOOLEAN },
225 { key::kRequireOnlineRevocationChecksForLocalAnchors, 226 { key::kRequireOnlineRevocationChecksForLocalAnchors,
226 ssl_config::prefs::kCertRevocationCheckingRequiredLocalAnchors, 227 ssl_config::prefs::kCertRevocationCheckingRequiredLocalAnchors,
227 base::Value::TYPE_BOOLEAN }, 228 base::Value::TYPE_BOOLEAN },
228 { key::kAuthSchemes, 229 { key::kAuthSchemes,
229 prefs::kAuthSchemes, 230 net::prefs::kAuthSchemes,
230 base::Value::TYPE_STRING }, 231 base::Value::TYPE_STRING },
231 { key::kDisableAuthNegotiateCnameLookup, 232 { key::kDisableAuthNegotiateCnameLookup,
232 prefs::kDisableAuthNegotiateCnameLookup, 233 net::prefs::kDisableAuthNegotiateCnameLookup,
233 base::Value::TYPE_BOOLEAN }, 234 base::Value::TYPE_BOOLEAN },
234 { key::kEnableAuthNegotiatePort, 235 { key::kEnableAuthNegotiatePort,
235 prefs::kEnableAuthNegotiatePort, 236 net::prefs::kEnableAuthNegotiatePort,
236 base::Value::TYPE_BOOLEAN }, 237 base::Value::TYPE_BOOLEAN },
237 { key::kAuthServerWhitelist, 238 { key::kAuthServerWhitelist,
238 prefs::kAuthServerWhitelist, 239 net::prefs::kAuthServerWhitelist,
239 base::Value::TYPE_STRING }, 240 base::Value::TYPE_STRING },
240 { key::kAuthNegotiateDelegateWhitelist, 241 { key::kAuthNegotiateDelegateWhitelist,
241 prefs::kAuthNegotiateDelegateWhitelist, 242 net::prefs::kAuthNegotiateDelegateWhitelist,
242 base::Value::TYPE_STRING }, 243 base::Value::TYPE_STRING },
243 { key::kGSSAPILibraryName, 244 { key::kGSSAPILibraryName,
244 prefs::kGSSAPILibraryName, 245 net::prefs::kGSSAPILibraryName,
245 base::Value::TYPE_STRING }, 246 base::Value::TYPE_STRING },
246 { key::kAllowCrossOriginAuthPrompt, 247 { key::kAllowCrossOriginAuthPrompt,
247 prefs::kAllowCrossOriginAuthPrompt, 248 prefs::kAllowCrossOriginAuthPrompt,
248 base::Value::TYPE_BOOLEAN }, 249 base::Value::TYPE_BOOLEAN },
249 { key::kDisable3DAPIs, 250 { key::kDisable3DAPIs,
250 prefs::kDisable3DAPIs, 251 prefs::kDisable3DAPIs,
251 base::Value::TYPE_BOOLEAN }, 252 base::Value::TYPE_BOOLEAN },
252 { key::kDisablePluginFinder, 253 { key::kDisablePluginFinder,
253 prefs::kDisablePluginFinder, 254 prefs::kDisablePluginFinder,
254 base::Value::TYPE_BOOLEAN }, 255 base::Value::TYPE_BOOLEAN },
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 { key::kBackgroundModeEnabled, 498 { key::kBackgroundModeEnabled,
498 prefs::kBackgroundModeEnabled, 499 prefs::kBackgroundModeEnabled,
499 base::Value::TYPE_BOOLEAN }, 500 base::Value::TYPE_BOOLEAN },
500 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 501 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
501 502
502 #if defined(OS_ANDROID) 503 #if defined(OS_ANDROID)
503 { key::kDataCompressionProxyEnabled, 504 { key::kDataCompressionProxyEnabled,
504 data_reduction_proxy::prefs::kDataReductionProxyEnabled, 505 data_reduction_proxy::prefs::kDataReductionProxyEnabled,
505 base::Value::TYPE_BOOLEAN }, 506 base::Value::TYPE_BOOLEAN },
506 { key::kAuthAndroidNegotiateAccountType, 507 { key::kAuthAndroidNegotiateAccountType,
507 prefs::kAuthAndroidNegotiateAccountType, 508 net::prefs::kAuthAndroidNegotiateAccountType,
508 base::Value::TYPE_STRING }, 509 base::Value::TYPE_STRING },
509 #endif // defined(OS_ANDROID) 510 #endif // defined(OS_ANDROID)
510 511
511 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) 512 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS)
512 { key::kNativeMessagingUserLevelHosts, 513 { key::kNativeMessagingUserLevelHosts,
513 extensions::pref_names::kNativeMessagingUserLevelHosts, 514 extensions::pref_names::kNativeMessagingUserLevelHosts,
514 base::Value::TYPE_BOOLEAN }, 515 base::Value::TYPE_BOOLEAN },
515 { key::kBrowserGuestModeEnabled, 516 { key::kBrowserGuestModeEnabled,
516 prefs::kBrowserGuestModeEnabled, 517 prefs::kBrowserGuestModeEnabled,
517 base::Value::TYPE_BOOLEAN }, 518 base::Value::TYPE_BOOLEAN },
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 807 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
807 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 808 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
808 handlers->AddHandler(make_scoped_ptr( 809 handlers->AddHandler(make_scoped_ptr(
809 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); 810 new chromeos::KeyPermissionsPolicyHandler(chrome_schema)));
810 #endif // defined(OS_CHROMEOS) 811 #endif // defined(OS_CHROMEOS)
811 812
812 return handlers.Pass(); 813 return handlers.Pass();
813 } 814 }
814 815
815 } // namespace policy 816 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698