| 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/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/singleton.h" | 10 #include "base/singleton.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 { Value::TYPE_STRING, kPolicyAuthSchemes, | 158 { Value::TYPE_STRING, kPolicyAuthSchemes, |
| 159 prefs::kAuthSchemes }, | 159 prefs::kAuthSchemes }, |
| 160 { Value::TYPE_BOOLEAN, kPolicyDisableAuthNegotiateCnameLookup, | 160 { Value::TYPE_BOOLEAN, kPolicyDisableAuthNegotiateCnameLookup, |
| 161 prefs::kDisableAuthNegotiateCnameLookup }, | 161 prefs::kDisableAuthNegotiateCnameLookup }, |
| 162 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort, | 162 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort, |
| 163 prefs::kEnableAuthNegotiatePort }, | 163 prefs::kEnableAuthNegotiatePort }, |
| 164 { Value::TYPE_STRING, kPolicyAuthServerWhitelist, | 164 { Value::TYPE_STRING, kPolicyAuthServerWhitelist, |
| 165 prefs::kAuthServerWhitelist }, | 165 prefs::kAuthServerWhitelist }, |
| 166 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist, | 166 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist, |
| 167 prefs::kAuthNegotiateDelegateWhitelist }, | 167 prefs::kAuthNegotiateDelegateWhitelist }, |
| 168 { Value::TYPE_STRING, kPolicyGSSAPILibraryName, |
| 169 prefs::kGSSAPILibraryName }, |
| 168 | 170 |
| 169 #if defined(OS_CHROMEOS) | 171 #if defined(OS_CHROMEOS) |
| 170 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, | 172 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, |
| 171 prefs::kEnableScreenLock }, | 173 prefs::kEnableScreenLock }, |
| 172 #endif | 174 #endif |
| 173 }; | 175 }; |
| 174 | 176 |
| 175 const ConfigurationPolicyPrefStore::PolicyToPreferenceMapEntry | 177 const ConfigurationPolicyPrefStore::PolicyToPreferenceMapEntry |
| 176 ConfigurationPolicyPrefStore::kDefaultSearchPolicyMap[] = { | 178 ConfigurationPolicyPrefStore::kDefaultSearchPolicyMap[] = { |
| 177 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, | 179 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 key::kBlockThirdPartyCookies }, | 264 key::kBlockThirdPartyCookies }, |
| 263 { kPolicyAuthSchemes, Value::TYPE_STRING, key::kAuthSchemes }, | 265 { kPolicyAuthSchemes, Value::TYPE_STRING, key::kAuthSchemes }, |
| 264 { kPolicyDisableAuthNegotiateCnameLookup, Value::TYPE_BOOLEAN, | 266 { kPolicyDisableAuthNegotiateCnameLookup, Value::TYPE_BOOLEAN, |
| 265 key::kDisableAuthNegotiateCnameLookup }, | 267 key::kDisableAuthNegotiateCnameLookup }, |
| 266 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, | 268 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, |
| 267 key::kEnableAuthNegotiatePort }, | 269 key::kEnableAuthNegotiatePort }, |
| 268 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, | 270 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, |
| 269 key::kAuthServerWhitelist }, | 271 key::kAuthServerWhitelist }, |
| 270 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, | 272 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, |
| 271 key::kAuthNegotiateDelegateWhitelist }, | 273 key::kAuthNegotiateDelegateWhitelist }, |
| 274 { kPolicyGSSAPILibraryName, Value::TYPE_STRING, |
| 275 key::kGSSAPILibraryName }, |
| 276 |
| 272 | 277 |
| 273 #if defined(OS_CHROMEOS) | 278 #if defined(OS_CHROMEOS) |
| 274 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, | 279 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, |
| 275 key::kChromeOsLockOnIdleSuspend }, | 280 key::kChromeOsLockOnIdleSuspend }, |
| 276 #endif | 281 #endif |
| 277 }; | 282 }; |
| 278 | 283 |
| 279 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { | 284 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { |
| 280 entries, | 285 entries, |
| 281 entries + arraysize(entries), | 286 entries + arraysize(entries), |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 std::string()); | 603 std::string()); |
| 599 return; | 604 return; |
| 600 } | 605 } |
| 601 } | 606 } |
| 602 // Required entries are not there. Remove any related entries. | 607 // Required entries are not there. Remove any related entries. |
| 603 RemovePreferencesOfMap(kDefaultSearchPolicyMap, | 608 RemovePreferencesOfMap(kDefaultSearchPolicyMap, |
| 604 arraysize(kDefaultSearchPolicyMap)); | 609 arraysize(kDefaultSearchPolicyMap)); |
| 605 } | 610 } |
| 606 | 611 |
| 607 } // namespace policy | 612 } // namespace policy |
| OLD | NEW |