Chromium Code Reviews| Index: chrome/browser/browser_process_impl.cc |
| diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc |
| index 02ff81d4ed440b941e648e4faaa81ffcc5de2b98..79de84fcd873cb115e550019676da304e38eecb9 100644 |
| --- a/chrome/browser/browser_process_impl.cc |
| +++ b/chrome/browser/browser_process_impl.cc |
| @@ -77,6 +77,7 @@ |
| #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| #include "content/common/notification_service.h" |
| #include "ipc/ipc_logging.h" |
| +#include "net/socket/client_socket_pool_manager.h" |
| #include "net/url_request/url_request_context_getter.h" |
| #include "ui/base/clipboard/clipboard.h" |
| #include "ui/base/l10n/l10n_util.h" |
| @@ -889,6 +890,15 @@ void BrowserProcessImpl::CreateLocalState() { |
| // able so we need to have it when initializing the profiles. |
| local_state_->RegisterFilePathPref(prefs::kDiskCacheDir, FilePath()); |
| + // Another policy that needs to be defined before the net subsystem is |
| + // initialized is MaxConnectionsPerProxy so we do it here. |
| + local_state_->RegisterIntegerPref(prefs::kMaxConnectionsPerProxy, |
| + net::kDefaultMaxSocketsPerProxyServer); |
| + int max_per_proxy = local_state_->GetInteger(prefs::kMaxConnectionsPerProxy); |
| + net::ClientSocketPoolManager::set_max_sockets_per_proxy_server( |
| + std::max(std::min(max_per_proxy, 100), |
|
pastarmovj
2011/07/08 10:49:39
Made the max 99 because the docu says lower than 1
|
| + net::ClientSocketPoolManager::max_sockets_per_group())); |
| + |
| // This is observed by ChildProcessSecurityPolicy, which lives in content/ |
| // though, so it can't register itself. |
| local_state_->RegisterListPref(prefs::kDisabledSchemes); |