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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 550 |
551 #if !defined(OS_ANDROID) | 551 #if !defined(OS_ANDROID) |
552 { key::kSuppressUnsupportedOSWarning, | 552 { key::kSuppressUnsupportedOSWarning, |
553 prefs::kSuppressUnsupportedOSWarning, | 553 prefs::kSuppressUnsupportedOSWarning, |
554 base::Value::TYPE_BOOLEAN }, | 554 base::Value::TYPE_BOOLEAN }, |
555 #endif // !OS_ANDROID | 555 #endif // !OS_ANDROID |
| 556 |
| 557 #if defined(OS_CHROMEOS) |
| 558 { key::kSystemTimezoneAutomaticDetection, |
| 559 prefs::kSystemTimezoneAutomaticDetectionPolicy, |
| 560 base::Value::TYPE_INTEGER }, |
| 561 #endif |
556 }; | 562 }; |
557 | 563 |
558 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { | 564 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { |
559 public: | 565 public: |
560 ForceSafeSearchPolicyHandler() | 566 ForceSafeSearchPolicyHandler() |
561 : TypeCheckingPolicyHandler(key::kForceSafeSearch, | 567 : TypeCheckingPolicyHandler(key::kForceSafeSearch, |
562 base::Value::TYPE_BOOLEAN) {} | 568 base::Value::TYPE_BOOLEAN) {} |
563 ~ForceSafeSearchPolicyHandler() override {} | 569 ~ForceSafeSearchPolicyHandler() override {} |
564 | 570 |
565 // ConfigurationPolicyHandler implementation: | 571 // ConfigurationPolicyHandler implementation: |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 836 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
831 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 837 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
832 handlers->AddHandler(make_scoped_ptr( | 838 handlers->AddHandler(make_scoped_ptr( |
833 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); | 839 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); |
834 #endif // defined(OS_CHROMEOS) | 840 #endif // defined(OS_CHROMEOS) |
835 | 841 |
836 return handlers; | 842 return handlers; |
837 } | 843 } |
838 | 844 |
839 } // namespace policy | 845 } // namespace policy |
OLD | NEW |