| 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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, | 829 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, |
| 828 key::kEnableAuthNegotiatePort }, | 830 key::kEnableAuthNegotiatePort }, |
| 829 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, | 831 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, |
| 830 key::kAuthServerWhitelist }, | 832 key::kAuthServerWhitelist }, |
| 831 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, | 833 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, |
| 832 key::kAuthNegotiateDelegateWhitelist }, | 834 key::kAuthNegotiateDelegateWhitelist }, |
| 833 { kPolicyGSSAPILibraryName, Value::TYPE_STRING, | 835 { kPolicyGSSAPILibraryName, Value::TYPE_STRING, |
| 834 key::kGSSAPILibraryName }, | 836 key::kGSSAPILibraryName }, |
| 835 { kPolicyDisable3DAPIs, Value::TYPE_BOOLEAN, | 837 { kPolicyDisable3DAPIs, Value::TYPE_BOOLEAN, |
| 836 key::kDisable3DAPIs }, | 838 key::kDisable3DAPIs }, |
| 839 { kPolicyPolicyRefreshRate, Value::TYPE_INTEGER, |
| 840 key::kPolicyRefreshRate }, |
| 837 | 841 |
| 838 #if defined(OS_CHROMEOS) | 842 #if defined(OS_CHROMEOS) |
| 839 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, | 843 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, |
| 840 key::kChromeOsLockOnIdleSuspend }, | 844 key::kChromeOsLockOnIdleSuspend }, |
| 841 #endif | 845 #endif |
| 842 }; | 846 }; |
| 843 | 847 |
| 844 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { | 848 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { |
| 845 entries, | 849 entries, |
| 846 entries + arraysize(entries), | 850 entries + arraysize(entries), |
| (...skipping 23 matching lines...) Expand all Loading... |
| 870 // Update the initialization flag. | 874 // Update the initialization flag. |
| 871 if (!initialization_complete_ && | 875 if (!initialization_complete_ && |
| 872 provider_->IsInitializationComplete()) { | 876 provider_->IsInitializationComplete()) { |
| 873 initialization_complete_ = true; | 877 initialization_complete_ = true; |
| 874 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, | 878 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, |
| 875 OnInitializationCompleted()); | 879 OnInitializationCompleted()); |
| 876 } | 880 } |
| 877 } | 881 } |
| 878 | 882 |
| 879 } // namespace policy | 883 } // namespace policy |
| OLD | NEW |