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 <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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 Value::TYPE_LIST }, | 99 Value::TYPE_LIST }, |
100 { key::kEnabledPlugins, | 100 { key::kEnabledPlugins, |
101 prefs::kPluginsEnabledPlugins, | 101 prefs::kPluginsEnabledPlugins, |
102 Value::TYPE_LIST }, | 102 Value::TYPE_LIST }, |
103 { key::kShowHomeButton, | 103 { key::kShowHomeButton, |
104 prefs::kShowHomeButton, | 104 prefs::kShowHomeButton, |
105 Value::TYPE_BOOLEAN }, | 105 Value::TYPE_BOOLEAN }, |
106 { key::kSavingBrowserHistoryDisabled, | 106 { key::kSavingBrowserHistoryDisabled, |
107 prefs::kSavingBrowserHistoryDisabled, | 107 prefs::kSavingBrowserHistoryDisabled, |
108 Value::TYPE_BOOLEAN }, | 108 Value::TYPE_BOOLEAN }, |
| 109 { key::kDeletingBrowserHistoryEnabled, |
| 110 prefs::kDeletingBrowserHistoryEnabled, |
| 111 Value::TYPE_BOOLEAN }, |
109 { key::kDeveloperToolsDisabled, | 112 { key::kDeveloperToolsDisabled, |
110 prefs::kDevToolsDisabled, | 113 prefs::kDevToolsDisabled, |
111 Value::TYPE_BOOLEAN }, | 114 Value::TYPE_BOOLEAN }, |
112 { key::kBlockThirdPartyCookies, | 115 { key::kBlockThirdPartyCookies, |
113 prefs::kBlockThirdPartyCookies, | 116 prefs::kBlockThirdPartyCookies, |
114 Value::TYPE_BOOLEAN }, | 117 Value::TYPE_BOOLEAN }, |
115 { key::kDefaultCookiesSetting, | 118 { key::kDefaultCookiesSetting, |
116 prefs::kManagedDefaultCookiesSetting, | 119 prefs::kManagedDefaultCookiesSetting, |
117 Value::TYPE_INTEGER }, | 120 Value::TYPE_INTEGER }, |
118 { key::kDefaultImagesSetting, | 121 { key::kDefaultImagesSetting, |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 } | 519 } |
517 | 520 |
518 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 521 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
519 PolicyMap* policies) const { | 522 PolicyMap* policies) const { |
520 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 523 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
521 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 524 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
522 (*handler)->PrepareForDisplaying(policies); | 525 (*handler)->PrepareForDisplaying(policies); |
523 } | 526 } |
524 | 527 |
525 } // namespace policy | 528 } // namespace policy |
OLD | NEW |