Use HttpNetworkSession::Params::enable_http2

next_protos is a private member now and HTTP1.1 is always added
This commit is contained in:
Brian R. Bondy 2016-04-26 22:24:48 -04:00 committed by Cheng Zhao
parent 71aa9a605a
commit 9d31297d27

View file

@ -341,10 +341,7 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
network_session_params.http_auth_handler_factory =
url_request_context_->http_auth_handler_factory();
network_session_params.net_log = url_request_context_->net_log();
net::NextProtoVector next_protos;
next_protos.push_back(net::kProtoHTTP2);
next_protos.push_back(net::kProtoHTTP11);
network_session_params.next_protos = next_protos;
network_session_params.enable_http2 = true;
// --ignore-certificate-errors
if (command_line.HasSwitch(switches::kIgnoreCertificateErrors))