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