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

Unified Diff: chrome/browser/io_thread.cc

Issue 451383002: Plumbing for TCP FastOpen for SSL sockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test and addressed comments. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/http/http_proxy_client_socket_pool_unittest.cc » ('j') | net/socket/tcp_socket.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 595c01b03d5777bca0797ecce8051c57e56ba4fc..d055905183c0c87199ed2c58cad7d1e4a2daba0f 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -843,8 +843,12 @@ void IOThread::InitializeNetworkOptions(const CommandLine& command_line) {
// instance, constructed from a NetworkSession::Params, to allow us
// to move this option to IOThread::Globals &
// HttpNetworkSession::Params.
- if (command_line.HasSwitch(switches::kEnableTcpFastOpen))
- net::SetTCPFastOpenEnabled(true);
+
+ bool always_enable_if_supported =
+ command_line.HasSwitch(switches::kEnableTcpFastOpen);
+ // Check for OS support of TCP FastOpen, and turn it on for all connections
+ // if indicated by user.
+ net::CheckSupportAndMaybeEnableTCPFastOpen(always_enable_if_supported);
}
void IOThread::ConfigureSpdyFromTrial(const std::string& spdy_trial_group,
« no previous file with comments | « no previous file | net/http/http_proxy_client_socket_pool_unittest.cc » ('j') | net/socket/tcp_socket.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698