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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 Value::TYPE_BOOLEAN }, | 53 Value::TYPE_BOOLEAN }, |
54 { key::kDisableSpdy, | 54 { key::kDisableSpdy, |
55 prefs::kDisableSpdy, | 55 prefs::kDisableSpdy, |
56 Value::TYPE_BOOLEAN }, | 56 Value::TYPE_BOOLEAN }, |
57 { key::kDisabledSchemes, | 57 { key::kDisabledSchemes, |
58 prefs::kDisabledSchemes, | 58 prefs::kDisabledSchemes, |
59 Value::TYPE_LIST }, | 59 Value::TYPE_LIST }, |
60 { key::kSafeBrowsingEnabled, | 60 { key::kSafeBrowsingEnabled, |
61 prefs::kSafeBrowsingEnabled, | 61 prefs::kSafeBrowsingEnabled, |
62 Value::TYPE_BOOLEAN }, | 62 Value::TYPE_BOOLEAN }, |
| 63 { key::kForceSafeSearch, |
| 64 prefs::kForceSafeSearch, |
| 65 Value::TYPE_BOOLEAN }, |
63 { key::kPasswordManagerEnabled, | 66 { key::kPasswordManagerEnabled, |
64 prefs::kPasswordManagerEnabled, | 67 prefs::kPasswordManagerEnabled, |
65 Value::TYPE_BOOLEAN }, | 68 Value::TYPE_BOOLEAN }, |
66 { key::kPasswordManagerAllowShowPasswords, | 69 { key::kPasswordManagerAllowShowPasswords, |
67 prefs::kPasswordManagerAllowShowPasswords, | 70 prefs::kPasswordManagerAllowShowPasswords, |
68 Value::TYPE_BOOLEAN }, | 71 Value::TYPE_BOOLEAN }, |
69 { key::kPrintingEnabled, | 72 { key::kPrintingEnabled, |
70 prefs::kPrintingEnabled, | 73 prefs::kPrintingEnabled, |
71 Value::TYPE_BOOLEAN }, | 74 Value::TYPE_BOOLEAN }, |
72 { key::kDisablePrintPreview, | 75 { key::kDisablePrintPreview, |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 } | 416 } |
414 | 417 |
415 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 418 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
416 PolicyMap* policies) const { | 419 PolicyMap* policies) const { |
417 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 420 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
418 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 421 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
419 (*handler)->PrepareForDisplaying(policies); | 422 (*handler)->PrepareForDisplaying(policies); |
420 } | 423 } |
421 | 424 |
422 } // namespace policy | 425 } // namespace policy |
OLD | NEW |