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 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 { key::kBrowserAddPersonEnabled, | 540 { key::kBrowserAddPersonEnabled, |
541 prefs::kBrowserAddPersonEnabled, | 541 prefs::kBrowserAddPersonEnabled, |
542 base::Value::TYPE_BOOLEAN }, | 542 base::Value::TYPE_BOOLEAN }, |
543 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 543 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
544 | 544 |
545 #if defined(OS_WIN) | 545 #if defined(OS_WIN) |
546 { key::kWelcomePageOnOSUpgradeEnabled, | 546 { key::kWelcomePageOnOSUpgradeEnabled, |
547 prefs::kWelcomePageOnOSUpgradeEnabled, | 547 prefs::kWelcomePageOnOSUpgradeEnabled, |
548 base::Value::TYPE_BOOLEAN }, | 548 base::Value::TYPE_BOOLEAN }, |
549 #endif // OS_WIN | 549 #endif // OS_WIN |
| 550 |
| 551 #if !defined(OS_ANDROID) |
| 552 { key::kSuppressUnsupportedOSWarning, |
| 553 prefs::kSuppressUnsupportedOSWarning, |
| 554 base::Value::TYPE_BOOLEAN }, |
| 555 #endif // !OS_ANDROID |
550 }; | 556 }; |
551 | 557 |
552 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { | 558 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { |
553 public: | 559 public: |
554 ForceSafeSearchPolicyHandler() | 560 ForceSafeSearchPolicyHandler() |
555 : TypeCheckingPolicyHandler(key::kForceSafeSearch, | 561 : TypeCheckingPolicyHandler(key::kForceSafeSearch, |
556 base::Value::TYPE_BOOLEAN) {} | 562 base::Value::TYPE_BOOLEAN) {} |
557 ~ForceSafeSearchPolicyHandler() override {} | 563 ~ForceSafeSearchPolicyHandler() override {} |
558 | 564 |
559 // ConfigurationPolicyHandler implementation: | 565 // ConfigurationPolicyHandler implementation: |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 830 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
825 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 831 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
826 handlers->AddHandler(make_scoped_ptr( | 832 handlers->AddHandler(make_scoped_ptr( |
827 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); | 833 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); |
828 #endif // defined(OS_CHROMEOS) | 834 #endif // defined(OS_CHROMEOS) |
829 | 835 |
830 return handlers; | 836 return handlers; |
831 } | 837 } |
832 | 838 |
833 } // namespace policy | 839 } // namespace policy |
OLD | NEW |