| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 { Value::TYPE_BOOLEAN, kPolicyDisableAuthNegotiateCnameLookup, | 176 { Value::TYPE_BOOLEAN, kPolicyDisableAuthNegotiateCnameLookup, |
| 177 prefs::kDisableAuthNegotiateCnameLookup }, | 177 prefs::kDisableAuthNegotiateCnameLookup }, |
| 178 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort, | 178 { Value::TYPE_BOOLEAN, kPolicyEnableAuthNegotiatePort, |
| 179 prefs::kEnableAuthNegotiatePort }, | 179 prefs::kEnableAuthNegotiatePort }, |
| 180 { Value::TYPE_STRING, kPolicyAuthServerWhitelist, | 180 { Value::TYPE_STRING, kPolicyAuthServerWhitelist, |
| 181 prefs::kAuthServerWhitelist }, | 181 prefs::kAuthServerWhitelist }, |
| 182 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist, | 182 { Value::TYPE_STRING, kPolicyAuthNegotiateDelegateWhitelist, |
| 183 prefs::kAuthNegotiateDelegateWhitelist }, | 183 prefs::kAuthNegotiateDelegateWhitelist }, |
| 184 { Value::TYPE_STRING, kPolicyGSSAPILibraryName, | 184 { Value::TYPE_STRING, kPolicyGSSAPILibraryName, |
| 185 prefs::kGSSAPILibraryName }, | 185 prefs::kGSSAPILibraryName }, |
| 186 { Value::TYPE_BOOLEAN, kPolicyDisable3DAPIs, |
| 187 prefs::kDisable3DAPIs }, |
| 186 | 188 |
| 187 #if defined(OS_CHROMEOS) | 189 #if defined(OS_CHROMEOS) |
| 188 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, | 190 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, |
| 189 prefs::kEnableScreenLock }, | 191 prefs::kEnableScreenLock }, |
| 190 #endif | 192 #endif |
| 191 }; | 193 }; |
| 192 | 194 |
| 193 const ConfigurationPolicyPrefStore::PolicyToPreferenceMapEntry | 195 const ConfigurationPolicyPrefStore::PolicyToPreferenceMapEntry |
| 194 ConfigurationPolicyPrefStore::kDefaultSearchPolicyMap[] = { | 196 ConfigurationPolicyPrefStore::kDefaultSearchPolicyMap[] = { |
| 195 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, | 197 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 { kPolicyDisableAuthNegotiateCnameLookup, Value::TYPE_BOOLEAN, | 294 { kPolicyDisableAuthNegotiateCnameLookup, Value::TYPE_BOOLEAN, |
| 293 key::kDisableAuthNegotiateCnameLookup }, | 295 key::kDisableAuthNegotiateCnameLookup }, |
| 294 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, | 296 { kPolicyEnableAuthNegotiatePort, Value::TYPE_BOOLEAN, |
| 295 key::kEnableAuthNegotiatePort }, | 297 key::kEnableAuthNegotiatePort }, |
| 296 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, | 298 { kPolicyAuthServerWhitelist, Value::TYPE_STRING, |
| 297 key::kAuthServerWhitelist }, | 299 key::kAuthServerWhitelist }, |
| 298 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, | 300 { kPolicyAuthNegotiateDelegateWhitelist, Value::TYPE_STRING, |
| 299 key::kAuthNegotiateDelegateWhitelist }, | 301 key::kAuthNegotiateDelegateWhitelist }, |
| 300 { kPolicyGSSAPILibraryName, Value::TYPE_STRING, | 302 { kPolicyGSSAPILibraryName, Value::TYPE_STRING, |
| 301 key::kGSSAPILibraryName }, | 303 key::kGSSAPILibraryName }, |
| 304 { kPolicyDisable3DAPIs, Value::TYPE_BOOLEAN, |
| 305 key::kDisable3DAPIs }, |
| 302 | 306 |
| 303 | 307 |
| 304 #if defined(OS_CHROMEOS) | 308 #if defined(OS_CHROMEOS) |
| 305 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, | 309 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, |
| 306 key::kChromeOsLockOnIdleSuspend }, | 310 key::kChromeOsLockOnIdleSuspend }, |
| 307 #endif | 311 #endif |
| 308 }; | 312 }; |
| 309 | 313 |
| 310 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { | 314 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { |
| 311 entries, | 315 entries, |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 std::string()); | 647 std::string()); |
| 644 return; | 648 return; |
| 645 } | 649 } |
| 646 } | 650 } |
| 647 // Required entries are not there. Remove any related entries. | 651 // Required entries are not there. Remove any related entries. |
| 648 RemovePreferencesOfMap(kDefaultSearchPolicyMap, | 652 RemovePreferencesOfMap(kDefaultSearchPolicyMap, |
| 649 arraysize(kDefaultSearchPolicyMap)); | 653 arraysize(kDefaultSearchPolicyMap)); |
| 650 } | 654 } |
| 651 | 655 |
| 652 } // namespace policy | 656 } // namespace policy |
| OLD | NEW |