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

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

Issue 12088040: Add a SigninAllowed policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix indentation issues. Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
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 <limits> 7 #include <limits>
8 8
9 #include "base/prefs/pref_value_map.h" 9 #include "base/prefs/pref_value_map.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 Value::TYPE_LIST }, 168 Value::TYPE_LIST },
169 { key::kNotificationsBlockedForUrls, 169 { key::kNotificationsBlockedForUrls,
170 prefs::kManagedNotificationsBlockedForUrls, 170 prefs::kManagedNotificationsBlockedForUrls,
171 Value::TYPE_LIST }, 171 Value::TYPE_LIST },
172 { key::kDefaultNotificationsSetting, 172 { key::kDefaultNotificationsSetting,
173 prefs::kManagedDefaultNotificationsSetting, 173 prefs::kManagedDefaultNotificationsSetting,
174 Value::TYPE_INTEGER }, 174 Value::TYPE_INTEGER },
175 { key::kDefaultGeolocationSetting, 175 { key::kDefaultGeolocationSetting,
176 prefs::kManagedDefaultGeolocationSetting, 176 prefs::kManagedDefaultGeolocationSetting,
177 Value::TYPE_INTEGER }, 177 Value::TYPE_INTEGER },
178 { key::kSigninAllowed,
179 prefs::kSigninAllowed,
180 Value::TYPE_BOOLEAN },
178 { key::kEnableOriginBoundCerts, 181 { key::kEnableOriginBoundCerts,
179 prefs::kEnableOriginBoundCerts, 182 prefs::kEnableOriginBoundCerts,
180 Value::TYPE_BOOLEAN }, 183 Value::TYPE_BOOLEAN },
181 { key::kDisableSSLRecordSplitting, 184 { key::kDisableSSLRecordSplitting,
182 prefs::kDisableSSLRecordSplitting, 185 prefs::kDisableSSLRecordSplitting,
183 Value::TYPE_BOOLEAN }, 186 Value::TYPE_BOOLEAN },
184 { key::kEnableOnlineRevocationChecks, 187 { key::kEnableOnlineRevocationChecks,
185 prefs::kCertRevocationCheckingEnabled, 188 prefs::kCertRevocationCheckingEnabled,
186 Value::TYPE_BOOLEAN }, 189 Value::TYPE_BOOLEAN },
187 { key::kAuthSchemes, 190 { key::kAuthSchemes,
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 } 525 }
523 526
524 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 527 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
525 PolicyMap* policies) const { 528 PolicyMap* policies) const {
526 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 529 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
527 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 530 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
528 (*handler)->PrepareForDisplaying(policies); 531 (*handler)->PrepareForDisplaying(policies);
529 } 532 }
530 533
531 } // namespace policy 534 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698