OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 5 #include "chrome/browser/policy/configuration_policy_handler_list.h" |
6 | 6 |
7 #include "base/prefs/pref_value_map.h" | 7 #include "base/prefs/pref_value_map.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/policy/configuration_policy_handler.h" | 10 #include "chrome/browser/policy/configuration_policy_handler.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 Value::TYPE_LIST }, | 163 Value::TYPE_LIST }, |
164 { key::kNotificationsBlockedForUrls, | 164 { key::kNotificationsBlockedForUrls, |
165 prefs::kManagedNotificationsBlockedForUrls, | 165 prefs::kManagedNotificationsBlockedForUrls, |
166 Value::TYPE_LIST }, | 166 Value::TYPE_LIST }, |
167 { key::kDefaultNotificationsSetting, | 167 { key::kDefaultNotificationsSetting, |
168 prefs::kManagedDefaultNotificationsSetting, | 168 prefs::kManagedDefaultNotificationsSetting, |
169 Value::TYPE_INTEGER }, | 169 Value::TYPE_INTEGER }, |
170 { key::kDefaultGeolocationSetting, | 170 { key::kDefaultGeolocationSetting, |
171 prefs::kManagedDefaultGeolocationSetting, | 171 prefs::kManagedDefaultGeolocationSetting, |
172 Value::TYPE_INTEGER }, | 172 Value::TYPE_INTEGER }, |
| 173 { key::kSigninAllowed, |
| 174 prefs::kSigninAllowed, |
| 175 Value::TYPE_BOOLEAN }, |
173 { key::kEnableOriginBoundCerts, | 176 { key::kEnableOriginBoundCerts, |
174 prefs::kEnableOriginBoundCerts, | 177 prefs::kEnableOriginBoundCerts, |
175 Value::TYPE_BOOLEAN }, | 178 Value::TYPE_BOOLEAN }, |
176 { key::kDisableSSLRecordSplitting, | 179 { key::kDisableSSLRecordSplitting, |
177 prefs::kDisableSSLRecordSplitting, | 180 prefs::kDisableSSLRecordSplitting, |
178 Value::TYPE_BOOLEAN }, | 181 Value::TYPE_BOOLEAN }, |
179 { key::kEnableOnlineRevocationChecks, | 182 { key::kEnableOnlineRevocationChecks, |
180 prefs::kCertRevocationCheckingEnabled, | 183 prefs::kCertRevocationCheckingEnabled, |
181 Value::TYPE_BOOLEAN }, | 184 Value::TYPE_BOOLEAN }, |
182 { key::kAuthSchemes, | 185 { key::kAuthSchemes, |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 } | 452 } |
450 | 453 |
451 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 454 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
452 PolicyMap* policies) const { | 455 PolicyMap* policies) const { |
453 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 456 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
454 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 457 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
455 (*handler)->PrepareForDisplaying(policies); | 458 (*handler)->PrepareForDisplaying(policies); |
456 } | 459 } |
457 | 460 |
458 } // namespace policy | 461 } // namespace policy |
OLD | NEW |