| Index: chrome/browser/io_thread.cc
|
| diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
|
| index 540a26f61d1932676db6678e1d9d51d31aea4ffd..63fb74a86eefeda4adcdd023ce331bdc5f57dd84 100644
|
| --- a/chrome/browser/io_thread.cc
|
| +++ b/chrome/browser/io_thread.cc
|
| @@ -79,7 +79,6 @@
|
| #include "net/url_request/url_fetcher.h"
|
| #include "net/url_request/url_request_job_factory_impl.h"
|
| #include "net/url_request/url_request_throttler_manager.h"
|
| -#include "net/websockets/websocket_job.h"
|
|
|
| #if defined(ENABLE_CONFIGURATION_POLICY)
|
| #include "policy/policy_constants.h"
|
| @@ -748,11 +747,6 @@ void IOThread::InitializeNetworkOptions(const CommandLine& command_line) {
|
| std::string spdy_trial_group =
|
| base::FieldTrialList::FindFullName(kSpdyFieldTrialName);
|
|
|
| - if (command_line.HasSwitch(switches::kEnableWebSocketOverSpdy)) {
|
| - // Enable WebSocket over SPDY.
|
| - net::WebSocketJob::set_websocket_over_spdy_enabled(true);
|
| - }
|
| -
|
| if (command_line.HasSwitch(switches::kTrustedSpdyProxy)) {
|
| globals_->trusted_spdy_proxy.set(
|
| command_line.GetSwitchValueASCII(switches::kTrustedSpdyProxy));
|
| @@ -783,6 +777,9 @@ void IOThread::InitializeNetworkOptions(const CommandLine& command_line) {
|
| globals_->use_alternate_protocols.set(true);
|
| }
|
| }
|
| +
|
| + if (command_line.HasSwitch(switches::kEnableWebSocketOverSpdy))
|
| + globals_->enable_websocket_over_spdy.set(true);
|
| }
|
|
|
| // TODO(rch): Make the client socket factory a per-network session
|
| @@ -971,6 +968,9 @@ void IOThread::InitializeNetworkSessionParams(
|
| ¶ms->origin_to_force_quic_on);
|
| params->enable_user_alternate_protocol_ports =
|
| globals_->enable_user_alternate_protocol_ports;
|
| +
|
| + globals_->enable_websocket_over_spdy.CopyToIfSet(
|
| + ¶ms->enable_websocket_over_spdy);
|
| }
|
|
|
| base::TimeTicks IOThread::creation_time() const {
|
|
|