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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate }, | 270 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate }, |
271 { Value::TYPE_BOOLEAN, kPolicyBookmarkBarEnabled, prefs::kEnableBookmarkBar }, | 271 { Value::TYPE_BOOLEAN, kPolicyBookmarkBarEnabled, prefs::kEnableBookmarkBar }, |
272 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins, | 272 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins, |
273 prefs::kPluginsAllowOutdated }, | 273 prefs::kPluginsAllowOutdated }, |
274 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins, | 274 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins, |
275 prefs::kPluginsAlwaysAuthorize }, | 275 prefs::kPluginsAlwaysAuthorize }, |
276 { Value::TYPE_BOOLEAN, kPolicyEditBookmarksEnabled, | 276 { Value::TYPE_BOOLEAN, kPolicyEditBookmarksEnabled, |
277 prefs::kEditBookmarksEnabled }, | 277 prefs::kEditBookmarksEnabled }, |
278 { Value::TYPE_BOOLEAN, kPolicyAllowFileSelectionDialogs, | 278 { Value::TYPE_BOOLEAN, kPolicyAllowFileSelectionDialogs, |
279 prefs::kAllowFileSelectionDialogs }, | 279 prefs::kAllowFileSelectionDialogs }, |
| 280 { Value::TYPE_INTEGER, kPolicyMaxConnectionsPerProxy, |
| 281 prefs::kMaxConnectionsPerProxy }, |
280 | 282 |
281 #if defined(OS_CHROMEOS) | 283 #if defined(OS_CHROMEOS) |
282 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, | 284 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, |
283 prefs::kEnableScreenLock }, | 285 prefs::kEnableScreenLock }, |
284 #endif | 286 #endif |
285 }; | 287 }; |
286 | 288 |
287 const ConfigurationPolicyPrefKeeper::PolicyToPreferenceMapEntry | 289 const ConfigurationPolicyPrefKeeper::PolicyToPreferenceMapEntry |
288 ConfigurationPolicyPrefKeeper::kDefaultSearchPolicyMap[] = { | 290 ConfigurationPolicyPrefKeeper::kDefaultSearchPolicyMap[] = { |
289 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, | 291 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1086 { kPolicyAlwaysAuthorizePlugins, Value::TYPE_BOOLEAN, | 1088 { kPolicyAlwaysAuthorizePlugins, Value::TYPE_BOOLEAN, |
1087 key::kAlwaysAuthorizePlugins }, | 1089 key::kAlwaysAuthorizePlugins }, |
1088 { kPolicyBookmarkBarEnabled, Value::TYPE_BOOLEAN, | 1090 { kPolicyBookmarkBarEnabled, Value::TYPE_BOOLEAN, |
1089 key::kBookmarkBarEnabled }, | 1091 key::kBookmarkBarEnabled }, |
1090 { kPolicyEditBookmarksEnabled, Value::TYPE_BOOLEAN, | 1092 { kPolicyEditBookmarksEnabled, Value::TYPE_BOOLEAN, |
1091 key::kEditBookmarksEnabled }, | 1093 key::kEditBookmarksEnabled }, |
1092 { kPolicyAllowFileSelectionDialogs, Value::TYPE_BOOLEAN, | 1094 { kPolicyAllowFileSelectionDialogs, Value::TYPE_BOOLEAN, |
1093 key::kAllowFileSelectionDialogs }, | 1095 key::kAllowFileSelectionDialogs }, |
1094 { kPolicyDiskCacheDir, Value::TYPE_STRING, | 1096 { kPolicyDiskCacheDir, Value::TYPE_STRING, |
1095 key::kDiskCacheDir }, | 1097 key::kDiskCacheDir }, |
| 1098 { kPolicyMaxConnectionsPerProxy, Value::TYPE_INTEGER, |
| 1099 key::kMaxConnectionsPerProxy }, |
1096 | 1100 |
1097 #if defined(OS_CHROMEOS) | 1101 #if defined(OS_CHROMEOS) |
1098 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, | 1102 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, |
1099 key::kChromeOsLockOnIdleSuspend }, | 1103 key::kChromeOsLockOnIdleSuspend }, |
1100 #endif | 1104 #endif |
1101 }; | 1105 }; |
1102 | 1106 |
1103 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { | 1107 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { |
1104 entries, | 1108 entries, |
1105 entries + arraysize(entries), | 1109 entries + arraysize(entries), |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1143 // Update the initialization flag. | 1147 // Update the initialization flag. |
1144 if (!initialization_complete_ && | 1148 if (!initialization_complete_ && |
1145 provider_->IsInitializationComplete()) { | 1149 provider_->IsInitializationComplete()) { |
1146 initialization_complete_ = true; | 1150 initialization_complete_ = true; |
1147 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, | 1151 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, |
1148 OnInitializationCompleted(true)); | 1152 OnInitializationCompleted(true)); |
1149 } | 1153 } |
1150 } | 1154 } |
1151 | 1155 |
1152 } // namespace policy | 1156 } // namespace policy |
OLD | NEW |