| 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 Value::TYPE_BOOLEAN }, | 368 Value::TYPE_BOOLEAN }, |
| 369 { key::kTermsOfServiceURL, | 369 { key::kTermsOfServiceURL, |
| 370 prefs::kTermsOfServiceURL, | 370 prefs::kTermsOfServiceURL, |
| 371 Value::TYPE_STRING }, | 371 Value::TYPE_STRING }, |
| 372 { key::kShowAccessibilityOptionsInSystemTrayMenu, | 372 { key::kShowAccessibilityOptionsInSystemTrayMenu, |
| 373 prefs::kShouldAlwaysShowAccessibilityMenu, | 373 prefs::kShouldAlwaysShowAccessibilityMenu, |
| 374 Value::TYPE_BOOLEAN }, | 374 Value::TYPE_BOOLEAN }, |
| 375 { key::kRebootAfterUpdate, | 375 { key::kRebootAfterUpdate, |
| 376 prefs::kRebootAfterUpdate, | 376 prefs::kRebootAfterUpdate, |
| 377 Value::TYPE_BOOLEAN }, | 377 Value::TYPE_BOOLEAN }, |
| 378 { key::kAttestationEnabledForUser, |
| 379 prefs::kAttestationEnabled, |
| 380 Value::TYPE_BOOLEAN }, |
| 381 { key::kAttestationExtensionWhitelist, |
| 382 prefs::kAttestationExtensionWhitelist, |
| 383 Value::TYPE_LIST }, |
| 378 #endif // defined(OS_CHROMEOS) | 384 #endif // defined(OS_CHROMEOS) |
| 379 | 385 |
| 380 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 386 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 381 { key::kBackgroundModeEnabled, | 387 { key::kBackgroundModeEnabled, |
| 382 prefs::kBackgroundModeEnabled, | 388 prefs::kBackgroundModeEnabled, |
| 383 Value::TYPE_BOOLEAN }, | 389 Value::TYPE_BOOLEAN }, |
| 384 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 390 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 385 }; | 391 }; |
| 386 | 392 |
| 387 // Mapping from extension type names to Manifest::Type. | 393 // Mapping from extension type names to Manifest::Type. |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 } | 553 } |
| 548 | 554 |
| 549 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 555 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
| 550 PolicyMap* policies) const { | 556 PolicyMap* policies) const { |
| 551 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 557 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
| 552 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 558 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
| 553 (*handler)->PrepareForDisplaying(policies); | 559 (*handler)->PrepareForDisplaying(policies); |
| 554 } | 560 } |
| 555 | 561 |
| 556 } // namespace policy | 562 } // namespace policy |
| OLD | NEW |