| Index: chrome/browser/io_thread.cc
|
| diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
|
| index a3773f6a4b2883054b44c7867cec4e85909fa7f4..ccb59c4ad8ad2d1c9c83449a145b244b1a472c64 100644
|
| --- a/chrome/browser/io_thread.cc
|
| +++ b/chrome/browser/io_thread.cc
|
| @@ -853,8 +853,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.
|
| + bool always_enable_if_supported = false;
|
| if (command_line.HasSwitch(switches::kEnableTcpFastOpen))
|
| - net::SetTCPFastOpenEnabled(true);
|
| + always_enable_if_supported = true;
|
| + // Checks for OS support of TCP FastOpen, and turns it on for all connections
|
| + // if indicated by user above.
|
| + net::CheckSupportAndMaybeEnableTCPFastOpen(always_enable_if_supported);
|
| }
|
|
|
| void IOThread::ConfigureSpdyFromTrial(const std::string& spdy_trial_group,
|
|
|