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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 base::Value::TYPE_BOOLEAN }, | 476 base::Value::TYPE_BOOLEAN }, |
477 #endif // defined(OS_ANDROID) | 477 #endif // defined(OS_ANDROID) |
478 | 478 |
479 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) | 479 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) |
480 { key::kNativeMessagingUserLevelHosts, | 480 { key::kNativeMessagingUserLevelHosts, |
481 extensions::pref_names::kNativeMessagingUserLevelHosts, | 481 extensions::pref_names::kNativeMessagingUserLevelHosts, |
482 base::Value::TYPE_BOOLEAN }, | 482 base::Value::TYPE_BOOLEAN }, |
483 { key::kBrowserGuestModeEnabled, | 483 { key::kBrowserGuestModeEnabled, |
484 prefs::kBrowserGuestModeEnabled, | 484 prefs::kBrowserGuestModeEnabled, |
485 base::Value::TYPE_BOOLEAN }, | 485 base::Value::TYPE_BOOLEAN }, |
| 486 { key::kBrowserAddPersonEnabled, |
| 487 prefs::kBrowserAddPersonEnabled, |
| 488 base::Value::TYPE_BOOLEAN }, |
486 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) | 489 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) |
487 }; | 490 }; |
488 | 491 |
489 #if defined(ENABLE_EXTENSIONS) | 492 #if defined(ENABLE_EXTENSIONS) |
490 void GetExtensionAllowedTypesMap( | 493 void GetExtensionAllowedTypesMap( |
491 ScopedVector<StringMappingListPolicyHandler::MappingEntry>* result) { | 494 ScopedVector<StringMappingListPolicyHandler::MappingEntry>* result) { |
492 // Mapping from extension type names to Manifest::Type. | 495 // Mapping from extension type names to Manifest::Type. |
493 result->push_back(new StringMappingListPolicyHandler::MappingEntry( | 496 result->push_back(new StringMappingListPolicyHandler::MappingEntry( |
494 "extension", scoped_ptr<base::Value>(new base::FundamentalValue( | 497 "extension", scoped_ptr<base::Value>(new base::FundamentalValue( |
495 extensions::Manifest::TYPE_EXTENSION)))); | 498 extensions::Manifest::TYPE_EXTENSION)))); |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 chrome_schema, | 792 chrome_schema, |
790 SCHEMA_STRICT, | 793 SCHEMA_STRICT, |
791 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 794 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
792 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 795 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
793 #endif // defined(OS_CHROMEOS) | 796 #endif // defined(OS_CHROMEOS) |
794 | 797 |
795 return handlers.Pass(); | 798 return handlers.Pass(); |
796 } | 799 } |
797 | 800 |
798 } // namespace policy | 801 } // namespace policy |
OLD | NEW |