OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_pref_store.h" | 5 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort, | 216 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort, |
217 prefs::kEnableAuthNegotiatePort }, | 217 prefs::kEnableAuthNegotiatePort }, |
218 { Value::TYPE_STRING, kPolicyAuthServerWhitelist, | 218 { Value::TYPE_STRING, kPolicyAuthServerWhitelist, |
219 prefs::kAuthServerWhitelist }, | 219 prefs::kAuthServerWhitelist }, |
220 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist, | 220 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist, |
221 prefs::kAuthNegotiateDelegateWhitelist }, | 221 prefs::kAuthNegotiateDelegateWhitelist }, |
222 { Value::TYPE_STRING, kPolicyGSSAPILibraryName, | 222 { Value::TYPE_STRING, kPolicyGSSAPILibraryName, |
223 prefs::kGSSAPILibraryName }, | 223 prefs::kGSSAPILibraryName }, |
224 { Value::TYPE_BOOLEAN, kPolicyDisable3DAPIs, | 224 { Value::TYPE_BOOLEAN, kPolicyDisable3DAPIs, |
225 prefs::kDisable3DAPIs }, | 225 prefs::kDisable3DAPIs }, |
| 226 { Value::TYPE_INTEGER, kPolicyPolicyRefreshRate, |
| 227 prefs::kPolicyRefreshRate }, |
226 | 228 |
227 #if defined(OS_CHROMEOS) | 229 #if defined(OS_CHROMEOS) |
228 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, | 230 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, |
229 prefs::kEnableScreenLock }, | 231 prefs::kEnableScreenLock }, |
230 #endif | 232 #endif |
231 }; | 233 }; |
232 | 234 |
233 const ConfigurationPolicyPrefKeeper::PolicyToPreferenceMapEntry | 235 const ConfigurationPolicyPrefKeeper::PolicyToPreferenceMapEntry |
234 ConfigurationPolicyPrefKeeper::kDefaultSearchPolicyMap[] = { | 236 ConfigurationPolicyPrefKeeper::kDefaultSearchPolicyMap[] = { |
235 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, | 237 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, | 768 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, |
767 key::kEnableAuthNegotiatePort }, | 769 key::kEnableAuthNegotiatePort }, |
768 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, | 770 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, |
769 key::kAuthServerWhitelist }, | 771 key::kAuthServerWhitelist }, |
770 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, | 772 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, |
771 key::kAuthNegotiateDelegateWhitelist }, | 773 key::kAuthNegotiateDelegateWhitelist }, |
772 { kPolicyGSSAPILibraryName, Value::TYPE_STRING, | 774 { kPolicyGSSAPILibraryName, Value::TYPE_STRING, |
773 key::kGSSAPILibraryName }, | 775 key::kGSSAPILibraryName }, |
774 { kPolicyDisable3DAPIs, Value::TYPE_BOOLEAN, | 776 { kPolicyDisable3DAPIs, Value::TYPE_BOOLEAN, |
775 key::kDisable3DAPIs }, | 777 key::kDisable3DAPIs }, |
| 778 { kPolicyPolicyRefreshRate, Value::TYPE_INTEGER, |
| 779 key::kPolicyRefreshRate }, |
776 | 780 |
777 #if defined(OS_CHROMEOS) | 781 #if defined(OS_CHROMEOS) |
778 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, | 782 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, |
779 key::kChromeOsLockOnIdleSuspend }, | 783 key::kChromeOsLockOnIdleSuspend }, |
780 #endif | 784 #endif |
781 }; | 785 }; |
782 | 786 |
783 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { | 787 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { |
784 entries, | 788 entries, |
785 entries + arraysize(entries), | 789 entries + arraysize(entries), |
(...skipping 23 matching lines...) Expand all Loading... |
809 // Update the initialization flag. | 813 // Update the initialization flag. |
810 if (!initialization_complete_ && | 814 if (!initialization_complete_ && |
811 provider_->IsInitializationComplete()) { | 815 provider_->IsInitializationComplete()) { |
812 initialization_complete_ = true; | 816 initialization_complete_ = true; |
813 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, | 817 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, |
814 OnInitializationCompleted()); | 818 OnInitializationCompleted()); |
815 } | 819 } |
816 } | 820 } |
817 | 821 |
818 } // namespace policy | 822 } // namespace policy |
OLD | NEW |