| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 Value::TYPE_BOOLEAN }, | 295 Value::TYPE_BOOLEAN }, |
| 296 { key::kChromeOsReleaseChannel, | 296 { key::kChromeOsReleaseChannel, |
| 297 prefs::kChromeOsReleaseChannel, | 297 prefs::kChromeOsReleaseChannel, |
| 298 Value::TYPE_STRING }, | 298 Value::TYPE_STRING }, |
| 299 { key::kReportDeviceVersionInfo, | 299 { key::kReportDeviceVersionInfo, |
| 300 prefs::kReportDeviceVersionInfo, | 300 prefs::kReportDeviceVersionInfo, |
| 301 Value::TYPE_BOOLEAN }, | 301 Value::TYPE_BOOLEAN }, |
| 302 { key::kReportDeviceActivityTimes, | 302 { key::kReportDeviceActivityTimes, |
| 303 prefs::kReportDeviceActivityTimes, | 303 prefs::kReportDeviceActivityTimes, |
| 304 Value::TYPE_BOOLEAN }, | 304 Value::TYPE_BOOLEAN }, |
| 305 { key::kReportDeviceBootMode, |
| 306 prefs::kReportDeviceBootMode, |
| 307 Value::TYPE_BOOLEAN }, |
| 305 #endif // defined(OS_CHROMEOS) | 308 #endif // defined(OS_CHROMEOS) |
| 306 }; | 309 }; |
| 307 | 310 |
| 308 } // namespace | 311 } // namespace |
| 309 | 312 |
| 310 ConfigurationPolicyHandlerList::ConfigurationPolicyHandlerList() { | 313 ConfigurationPolicyHandlerList::ConfigurationPolicyHandlerList() { |
| 311 for (size_t i = 0; i < arraysize(kSimplePolicyMap); ++i) { | 314 for (size_t i = 0; i < arraysize(kSimplePolicyMap); ++i) { |
| 312 handlers_.push_back( | 315 handlers_.push_back( |
| 313 new SimplePolicyHandler(kSimplePolicyMap[i].policy_name, | 316 new SimplePolicyHandler(kSimplePolicyMap[i].policy_name, |
| 314 kSimplePolicyMap[i].preference_path, | 317 kSimplePolicyMap[i].preference_path, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 } | 370 } |
| 368 | 371 |
| 369 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 372 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
| 370 PolicyMap* policies) const { | 373 PolicyMap* policies) const { |
| 371 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 374 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
| 372 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 375 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
| 373 (*handler)->PrepareForDisplaying(policies); | 376 (*handler)->PrepareForDisplaying(policies); |
| 374 } | 377 } |
| 375 | 378 |
| 376 } // namespace policy | 379 } // namespace policy |
| OLD | NEW |