Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: chrome/browser/policy/configuration_policy_pref_store.cc

Issue 7283018: Introduce a policy to control the maximal number of connections per proxy server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved setting that policy to a really early point in the initialization of the system. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate }, 267 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate },
268 { Value::TYPE_BOOLEAN, kPolicyBookmarkBarEnabled, prefs::kEnableBookmarkBar }, 268 { Value::TYPE_BOOLEAN, kPolicyBookmarkBarEnabled, prefs::kEnableBookmarkBar },
269 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins, 269 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins,
270 prefs::kPluginsAllowOutdated }, 270 prefs::kPluginsAllowOutdated },
271 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins, 271 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins,
272 prefs::kPluginsAlwaysAuthorize }, 272 prefs::kPluginsAlwaysAuthorize },
273 { Value::TYPE_BOOLEAN, kPolicyEditBookmarksEnabled, 273 { Value::TYPE_BOOLEAN, kPolicyEditBookmarksEnabled,
274 prefs::kEditBookmarksEnabled }, 274 prefs::kEditBookmarksEnabled },
275 { Value::TYPE_BOOLEAN, kPolicyAllowFileSelectionDialogs, 275 { Value::TYPE_BOOLEAN, kPolicyAllowFileSelectionDialogs,
276 prefs::kAllowFileSelectionDialogs }, 276 prefs::kAllowFileSelectionDialogs },
277 { Value::TYPE_INTEGER, kPolicyMaxConnectionsPerProxy,
278 prefs::kMaxConnectionsPerProxy },
277 279
278 #if defined(OS_CHROMEOS) 280 #if defined(OS_CHROMEOS)
279 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, 281 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend,
280 prefs::kEnableScreenLock }, 282 prefs::kEnableScreenLock },
281 #endif 283 #endif
282 }; 284 };
283 285
284 const ConfigurationPolicyPrefKeeper::PolicyToPreferenceMapEntry 286 const ConfigurationPolicyPrefKeeper::PolicyToPreferenceMapEntry
285 ConfigurationPolicyPrefKeeper::kDefaultSearchPolicyMap[] = { 287 ConfigurationPolicyPrefKeeper::kDefaultSearchPolicyMap[] = {
286 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, 288 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled,
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 { kPolicyAlwaysAuthorizePlugins, Value::TYPE_BOOLEAN, 1060 { kPolicyAlwaysAuthorizePlugins, Value::TYPE_BOOLEAN,
1059 key::kAlwaysAuthorizePlugins }, 1061 key::kAlwaysAuthorizePlugins },
1060 { kPolicyBookmarkBarEnabled, Value::TYPE_BOOLEAN, 1062 { kPolicyBookmarkBarEnabled, Value::TYPE_BOOLEAN,
1061 key::kBookmarkBarEnabled }, 1063 key::kBookmarkBarEnabled },
1062 { kPolicyEditBookmarksEnabled, Value::TYPE_BOOLEAN, 1064 { kPolicyEditBookmarksEnabled, Value::TYPE_BOOLEAN,
1063 key::kEditBookmarksEnabled }, 1065 key::kEditBookmarksEnabled },
1064 { kPolicyAllowFileSelectionDialogs, Value::TYPE_BOOLEAN, 1066 { kPolicyAllowFileSelectionDialogs, Value::TYPE_BOOLEAN,
1065 key::kAllowFileSelectionDialogs }, 1067 key::kAllowFileSelectionDialogs },
1066 { kPolicyDiskCacheDir, Value::TYPE_STRING, 1068 { kPolicyDiskCacheDir, Value::TYPE_STRING,
1067 key::kDiskCacheDir }, 1069 key::kDiskCacheDir },
1070 { kPolicyMaxConnectionsPerProxy, Value::TYPE_INTEGER,
1071 key::kMaxConnectionsPerProxy },
1068 1072
1069 #if defined(OS_CHROMEOS) 1073 #if defined(OS_CHROMEOS)
1070 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, 1074 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN,
1071 key::kChromeOsLockOnIdleSuspend }, 1075 key::kChromeOsLockOnIdleSuspend },
1072 #endif 1076 #endif
1073 }; 1077 };
1074 1078
1075 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { 1079 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = {
1076 entries, 1080 entries,
1077 entries + arraysize(entries), 1081 entries + arraysize(entries),
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 // Update the initialization flag. 1128 // Update the initialization flag.
1125 if (!initialization_complete_ && 1129 if (!initialization_complete_ &&
1126 provider_->IsInitializationComplete()) { 1130 provider_->IsInitializationComplete()) {
1127 initialization_complete_ = true; 1131 initialization_complete_ = true;
1128 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, 1132 FOR_EACH_OBSERVER(PrefStore::Observer, observers_,
1129 OnInitializationCompleted(true)); 1133 OnInitializationCompleted(true));
1130 } 1134 }
1131 } 1135 }
1132 1136
1133 } // namespace policy 1137 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698