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/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/policy/configuration_policy_handler.h" | 9 #include "chrome/browser/policy/configuration_policy_handler.h" |
10 #include "chrome/browser/policy/policy_error_map.h" | 10 #include "chrome/browser/policy/policy_error_map.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 Value::TYPE_BOOLEAN }, | 221 Value::TYPE_BOOLEAN }, |
222 { key::kRemoteAccessHostRequireTwoFactor, | 222 { key::kRemoteAccessHostRequireTwoFactor, |
223 prefs::kRemoteAccessHostRequireTwoFactor, | 223 prefs::kRemoteAccessHostRequireTwoFactor, |
224 Value::TYPE_BOOLEAN }, | 224 Value::TYPE_BOOLEAN }, |
225 { key::kRemoteAccessHostDomain, | 225 { key::kRemoteAccessHostDomain, |
226 prefs::kRemoteAccessHostDomain, | 226 prefs::kRemoteAccessHostDomain, |
227 Value::TYPE_STRING }, | 227 Value::TYPE_STRING }, |
228 { key::kRemoteAccessHostTalkGadgetPrefix, | 228 { key::kRemoteAccessHostTalkGadgetPrefix, |
229 prefs::kRemoteAccessHostTalkGadgetPrefix, | 229 prefs::kRemoteAccessHostTalkGadgetPrefix, |
230 Value::TYPE_STRING }, | 230 Value::TYPE_STRING }, |
| 231 { key::kRemoteAccessHostRequireCurtain, |
| 232 prefs::kRemoteAccessHostRequireCurtain, |
| 233 Value::TYPE_BOOLEAN }, |
231 { key::kCloudPrintProxyEnabled, | 234 { key::kCloudPrintProxyEnabled, |
232 prefs::kCloudPrintProxyEnabled, | 235 prefs::kCloudPrintProxyEnabled, |
233 Value::TYPE_BOOLEAN }, | 236 Value::TYPE_BOOLEAN }, |
234 { key::kCloudPrintSubmitEnabled, | 237 { key::kCloudPrintSubmitEnabled, |
235 prefs::kCloudPrintSubmitEnabled, | 238 prefs::kCloudPrintSubmitEnabled, |
236 Value::TYPE_BOOLEAN }, | 239 Value::TYPE_BOOLEAN }, |
237 { key::kTranslateEnabled, | 240 { key::kTranslateEnabled, |
238 prefs::kEnableTranslate, | 241 prefs::kEnableTranslate, |
239 Value::TYPE_BOOLEAN }, | 242 Value::TYPE_BOOLEAN }, |
240 { key::kAllowOutdatedPlugins, | 243 { key::kAllowOutdatedPlugins, |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 } | 407 } |
405 | 408 |
406 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 409 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
407 PolicyMap* policies) const { | 410 PolicyMap* policies) const { |
408 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 411 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
409 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 412 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
410 (*handler)->PrepareForDisplaying(policies); | 413 (*handler)->PrepareForDisplaying(policies); |
411 } | 414 } |
412 | 415 |
413 } // namespace policy | 416 } // namespace policy |
OLD | NEW |