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/logging.h" | 7 #include "base/logging.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/singleton.h" | 9 #include "base/singleton.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 { Value::TYPE_STRING, kPolicyAuthSchemes, | 147 { Value::TYPE_STRING, kPolicyAuthSchemes, |
148 prefs::kAuthSchemes }, | 148 prefs::kAuthSchemes }, |
149 { Value::TYPE_BOOLEAN, kPolicyDisableAuthNegotiateCnameLookup, | 149 { Value::TYPE_BOOLEAN, kPolicyDisableAuthNegotiateCnameLookup, |
150 prefs::kDisableAuthNegotiateCnameLookup }, | 150 prefs::kDisableAuthNegotiateCnameLookup }, |
151 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort, | 151 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort, |
152 prefs::kEnableAuthNegotiatePort }, | 152 prefs::kEnableAuthNegotiatePort }, |
153 { Value::TYPE_STRING, kPolicyAuthServerWhitelist, | 153 { Value::TYPE_STRING, kPolicyAuthServerWhitelist, |
154 prefs::kAuthServerWhitelist }, | 154 prefs::kAuthServerWhitelist }, |
155 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist, | 155 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist, |
156 prefs::kAuthNegotiateDelegateWhitelist }, | 156 prefs::kAuthNegotiateDelegateWhitelist }, |
| 157 { Value::TYPE_STRING, kPolicyGSSAPILibraryName, |
| 158 prefs::kGSSAPILibraryName }, |
157 | 159 |
158 #if defined(OS_CHROMEOS) | 160 #if defined(OS_CHROMEOS) |
159 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, | 161 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, |
160 prefs::kEnableScreenLock }, | 162 prefs::kEnableScreenLock }, |
161 #endif | 163 #endif |
162 }; | 164 }; |
163 | 165 |
164 const ConfigurationPolicyPrefStore::PolicyToPreferenceMapEntry | 166 const ConfigurationPolicyPrefStore::PolicyToPreferenceMapEntry |
165 ConfigurationPolicyPrefStore::kDefaultSearchPolicyMap[] = { | 167 ConfigurationPolicyPrefStore::kDefaultSearchPolicyMap[] = { |
166 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, | 168 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 key::kBlockThirdPartyCookies }, | 253 key::kBlockThirdPartyCookies }, |
252 { kPolicyAuthSchemes, Value::TYPE_STRING, key::kAuthSchemes }, | 254 { kPolicyAuthSchemes, Value::TYPE_STRING, key::kAuthSchemes }, |
253 { kPolicyDisableAuthNegotiateCnameLookup, Value::TYPE_BOOLEAN, | 255 { kPolicyDisableAuthNegotiateCnameLookup, Value::TYPE_BOOLEAN, |
254 key::kDisableAuthNegotiateCnameLookup }, | 256 key::kDisableAuthNegotiateCnameLookup }, |
255 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, | 257 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, |
256 key::kEnableAuthNegotiatePort }, | 258 key::kEnableAuthNegotiatePort }, |
257 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, | 259 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, |
258 key::kAuthServerWhitelist }, | 260 key::kAuthServerWhitelist }, |
259 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, | 261 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, |
260 key::kAuthNegotiateDelegateWhitelist }, | 262 key::kAuthNegotiateDelegateWhitelist }, |
| 263 { kPolicyGSSAPILibraryName, Value::TYPE_STRING, |
| 264 key::kGSSAPILibraryName }, |
| 265 |
261 | 266 |
262 #if defined(OS_CHROMEOS) | 267 #if defined(OS_CHROMEOS) |
263 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, | 268 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, |
264 key::kChromeOsLockOnIdleSuspend }, | 269 key::kChromeOsLockOnIdleSuspend }, |
265 #endif | 270 #endif |
266 }; | 271 }; |
267 | 272 |
268 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { | 273 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { |
269 entries, | 274 entries, |
270 entries + arraysize(entries), | 275 entries + arraysize(entries), |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 std::string()); | 592 std::string()); |
588 return; | 593 return; |
589 } | 594 } |
590 } | 595 } |
591 // Required entries are not there. Remove any related entries. | 596 // Required entries are not there. Remove any related entries. |
592 RemovePreferencesOfMap(kDefaultSearchPolicyMap, | 597 RemovePreferencesOfMap(kDefaultSearchPolicyMap, |
593 arraysize(kDefaultSearchPolicyMap)); | 598 arraysize(kDefaultSearchPolicyMap)); |
594 } | 599 } |
595 | 600 |
596 } // namespace policy | 601 } // namespace policy |
OLD | NEW |