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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( | 577 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( |
578 new extensions::NativeMessagingHostListPolicyHandler( | 578 new extensions::NativeMessagingHostListPolicyHandler( |
579 key::kNativeMessagingBlacklist, | 579 key::kNativeMessagingBlacklist, |
580 extensions::pref_names::kNativeMessagingBlacklist, | 580 extensions::pref_names::kNativeMessagingBlacklist, |
581 true))); | 581 true))); |
582 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) | 582 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) |
583 | 583 |
584 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 584 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
585 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( | 585 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( |
586 new DownloadDirPolicyHandler)); | 586 new DownloadDirPolicyHandler)); |
| 587 |
| 588 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( |
| 589 new SimpleSchemaValidatingPolicyHandler( |
| 590 key::kRegisteredProtocolHandlers, |
| 591 prefs::kPolicyRegisteredProtocolHandlers, |
| 592 chrome_schema, |
| 593 SCHEMA_STRICT, |
| 594 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
| 595 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
587 #endif | 596 #endif |
588 | 597 |
589 #if defined(OS_CHROMEOS) | 598 #if defined(OS_CHROMEOS) |
590 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( | 599 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( |
591 new extensions::ExtensionListPolicyHandler( | 600 new extensions::ExtensionListPolicyHandler( |
592 key::kAttestationExtensionWhitelist, | 601 key::kAttestationExtensionWhitelist, |
593 prefs::kAttestationExtensionWhitelist, | 602 prefs::kAttestationExtensionWhitelist, |
594 false))); | 603 false))); |
595 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( | 604 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( |
596 NetworkConfigurationPolicyHandler::CreateForDevicePolicy())); | 605 NetworkConfigurationPolicyHandler::CreateForDevicePolicy())); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( | 740 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( |
732 new ExternalDataPolicyHandler(key::kUserAvatarImage))); | 741 new ExternalDataPolicyHandler(key::kUserAvatarImage))); |
733 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( | 742 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( |
734 new ExternalDataPolicyHandler(key::kWallpaperImage))); | 743 new ExternalDataPolicyHandler(key::kWallpaperImage))); |
735 #endif // defined(OS_CHROMEOS) | 744 #endif // defined(OS_CHROMEOS) |
736 | 745 |
737 return handlers.Pass(); | 746 return handlers.Pass(); |
738 } | 747 } |
739 | 748 |
740 } // namespace policy | 749 } // namespace policy |
OLD | NEW |