summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 4d9803c..0d76b8e 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -67,6 +67,7 @@
#include "net/http/http_network_session.h"
#include "net/http/http_network_transaction.h"
#include "net/socket/client_socket_pool_base.h"
+#include "net/spdy/spdy_session_pool.h"
#if defined(OS_POSIX)
// TODO(port): get rid of this include. It's used just to provide declarations
@@ -674,6 +675,14 @@ int BrowserMain(const MainFunctionParams& parameters) {
if (parsed_command_line.HasSwitch(switches::kIgnoreCertificateErrors))
net::HttpNetworkTransaction::IgnoreCertificateErrors(true);
+ if (parsed_command_line.HasSwitch(switches::kMaxSpdySessionsPerDomain)) {
+ int value = StringToInt(
+ parsed_command_line.GetSwitchValueASCII(
+ switches::kMaxSpdySessionsPerDomain));
+ net::SpdySessionPool::set_max_sessions_per_domain(value);
+ }
+
+
// Initialize histogram statistics gathering system.
StatisticsRecorder statistics;