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 <limits.h> | 7 #include <limits.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 handlers->AddHandler( | 814 handlers->AddHandler( |
815 make_scoped_ptr(new ExternalDataPolicyHandler(key::kWallpaperImage))); | 815 make_scoped_ptr(new ExternalDataPolicyHandler(key::kWallpaperImage))); |
816 handlers->AddHandler(make_scoped_ptr(new SimpleSchemaValidatingPolicyHandler( | 816 handlers->AddHandler(make_scoped_ptr(new SimpleSchemaValidatingPolicyHandler( |
817 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT, | 817 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT, |
818 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 818 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
819 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 819 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
820 handlers->AddHandler(make_scoped_ptr( | 820 handlers->AddHandler(make_scoped_ptr( |
821 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); | 821 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); |
822 #endif // defined(OS_CHROMEOS) | 822 #endif // defined(OS_CHROMEOS) |
823 | 823 |
824 return handlers.Pass(); | 824 return handlers; |
825 } | 825 } |
826 | 826 |
827 } // namespace policy | 827 } // namespace policy |
OLD | NEW |