| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 { Value::TYPE_BOOLEAN, kPolicyDisableAuthNegotiateCnameLookup, | 179 { Value::TYPE_BOOLEAN, kPolicyDisableAuthNegotiateCnameLookup, |
| 180 prefs::kDisableAuthNegotiateCnameLookup }, | 180 prefs::kDisableAuthNegotiateCnameLookup }, |
| 181 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort, | 181 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort, |
| 182 prefs::kEnableAuthNegotiatePort }, | 182 prefs::kEnableAuthNegotiatePort }, |
| 183 { Value::TYPE_STRING, kPolicyAuthServerWhitelist, | 183 { Value::TYPE_STRING, kPolicyAuthServerWhitelist, |
| 184 prefs::kAuthServerWhitelist }, | 184 prefs::kAuthServerWhitelist }, |
| 185 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist, | 185 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist, |
| 186 prefs::kAuthNegotiateDelegateWhitelist }, | 186 prefs::kAuthNegotiateDelegateWhitelist }, |
| 187 { Value::TYPE_STRING, kPolicyGSSAPILibraryName, | 187 { Value::TYPE_STRING, kPolicyGSSAPILibraryName, |
| 188 prefs::kGSSAPILibraryName }, | 188 prefs::kGSSAPILibraryName }, |
| 189 { Value::TYPE_BOOLEAN, kPolicyDisable3DAPIs, |
| 190 prefs::kDisable3DAPIs }, |
| 189 | 191 |
| 190 #if defined(OS_CHROMEOS) | 192 #if defined(OS_CHROMEOS) |
| 191 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, | 193 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, |
| 192 prefs::kEnableScreenLock }, | 194 prefs::kEnableScreenLock }, |
| 193 #endif | 195 #endif |
| 194 }; | 196 }; |
| 195 | 197 |
| 196 const ConfigurationPolicyPrefStore::PolicyToPreferenceMapEntry | 198 const ConfigurationPolicyPrefStore::PolicyToPreferenceMapEntry |
| 197 ConfigurationPolicyPrefStore::kDefaultSearchPolicyMap[] = { | 199 ConfigurationPolicyPrefStore::kDefaultSearchPolicyMap[] = { |
| 198 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, | 200 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 { kPolicyDisableAuthNegotiateCnameLookup, Value::TYPE_BOOLEAN, | 297 { kPolicyDisableAuthNegotiateCnameLookup, Value::TYPE_BOOLEAN, |
| 296 key::kDisableAuthNegotiateCnameLookup }, | 298 key::kDisableAuthNegotiateCnameLookup }, |
| 297 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, | 299 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, |
| 298 key::kEnableAuthNegotiatePort }, | 300 key::kEnableAuthNegotiatePort }, |
| 299 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, | 301 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, |
| 300 key::kAuthServerWhitelist }, | 302 key::kAuthServerWhitelist }, |
| 301 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, | 303 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, |
| 302 key::kAuthNegotiateDelegateWhitelist }, | 304 key::kAuthNegotiateDelegateWhitelist }, |
| 303 { kPolicyGSSAPILibraryName, Value::TYPE_STRING, | 305 { kPolicyGSSAPILibraryName, Value::TYPE_STRING, |
| 304 key::kGSSAPILibraryName }, | 306 key::kGSSAPILibraryName }, |
| 305 | 307 { kPolicyDisable3DAPIs, Value::TYPE_BOOLEAN, |
| 308 key::kDisable3DAPIs }, |
| 306 | 309 |
| 307 #if defined(OS_CHROMEOS) | 310 #if defined(OS_CHROMEOS) |
| 308 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, | 311 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, |
| 309 key::kChromeOsLockOnIdleSuspend }, | 312 key::kChromeOsLockOnIdleSuspend }, |
| 310 #endif | 313 #endif |
| 311 }; | 314 }; |
| 312 | 315 |
| 313 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { | 316 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { |
| 314 entries, | 317 entries, |
| 315 entries + arraysize(entries), | 318 entries + arraysize(entries), |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 std::string()); | 663 std::string()); |
| 661 return; | 664 return; |
| 662 } | 665 } |
| 663 } | 666 } |
| 664 // Required entries are not there. Remove any related entries. | 667 // Required entries are not there. Remove any related entries. |
| 665 RemovePreferencesOfMap(kDefaultSearchPolicyMap, | 668 RemovePreferencesOfMap(kDefaultSearchPolicyMap, |
| 666 arraysize(kDefaultSearchPolicyMap)); | 669 arraysize(kDefaultSearchPolicyMap)); |
| 667 } | 670 } |
| 668 | 671 |
| 669 } // namespace policy | 672 } // namespace policy |
| OLD | NEW |