Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_factory.h" | 5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 642 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( | 642 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( |
| 643 new extensions::ExtensionListPolicyHandler( | 643 new extensions::ExtensionListPolicyHandler( |
| 644 key::kAttestationExtensionWhitelist, | 644 key::kAttestationExtensionWhitelist, |
| 645 prefs::kAttestationExtensionWhitelist, | 645 prefs::kAttestationExtensionWhitelist, |
| 646 false))); | 646 false))); |
| 647 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( | 647 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( |
| 648 NetworkConfigurationPolicyHandler::CreateForDevicePolicy())); | 648 NetworkConfigurationPolicyHandler::CreateForDevicePolicy())); |
| 649 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( | 649 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( |
| 650 NetworkConfigurationPolicyHandler::CreateForUserPolicy())); | 650 NetworkConfigurationPolicyHandler::CreateForUserPolicy())); |
| 651 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( | 651 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( |
| 652 new PinnedLauncherAppsPolicyHandler())); | |
|
bartfab (slow)
2014/10/15 09:52:21
This should stay.
rkc
2014/11/20 21:06:34
Done.
| |
| 653 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( | |
| 654 new ScreenMagnifierPolicyHandler())); | 652 new ScreenMagnifierPolicyHandler())); |
| 655 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( | 653 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( |
| 656 new LoginScreenPowerManagementPolicyHandler(chrome_schema))); | 654 new LoginScreenPowerManagementPolicyHandler(chrome_schema))); |
| 657 | 655 |
| 658 ScopedVector<ConfigurationPolicyHandler> | 656 ScopedVector<ConfigurationPolicyHandler> |
| 659 power_management_idle_legacy_policies; | 657 power_management_idle_legacy_policies; |
| 660 power_management_idle_legacy_policies.push_back( | 658 power_management_idle_legacy_policies.push_back( |
| 661 new IntRangePolicyHandler(key::kScreenDimDelayAC, | 659 new IntRangePolicyHandler(key::kScreenDimDelayAC, |
| 662 prefs::kPowerAcScreenDimDelayMs, | 660 prefs::kPowerAcScreenDimDelayMs, |
| 663 0, | 661 0, |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 791 chrome_schema, | 789 chrome_schema, |
| 792 SCHEMA_STRICT, | 790 SCHEMA_STRICT, |
| 793 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 791 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
| 794 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 792 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
| 795 #endif // defined(OS_CHROMEOS) | 793 #endif // defined(OS_CHROMEOS) |
| 796 | 794 |
| 797 return handlers.Pass(); | 795 return handlers.Pass(); |
| 798 } | 796 } |
| 799 | 797 |
| 800 } // namespace policy | 798 } // namespace policy |
| OLD | NEW |