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

Side by Side Diff: ios/chrome/browser/ios_chrome_io_thread.mm

Issue 2115213002: Disable SPDY/3.1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on https://crrev.com/2129973002. Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ios/chrome/browser/ios_chrome_io_thread.h" 5 #include "ios/chrome/browser/ios_chrome_io_thread.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 params_.enable_user_alternate_protocol_ports = false; 389 params_.enable_user_alternate_protocol_ports = false;
390 390
391 std::string quic_user_agent_id = ::GetChannelString(); 391 std::string quic_user_agent_id = ::GetChannelString();
392 if (!quic_user_agent_id.empty()) 392 if (!quic_user_agent_id.empty())
393 quic_user_agent_id.push_back(' '); 393 quic_user_agent_id.push_back(' ');
394 quic_user_agent_id.append( 394 quic_user_agent_id.append(
395 version_info::GetProductNameAndVersionForUserAgent()); 395 version_info::GetProductNameAndVersionForUserAgent());
396 quic_user_agent_id.push_back(' '); 396 quic_user_agent_id.push_back(' ');
397 quic_user_agent_id.append(web::BuildOSCpuInfo()); 397 quic_user_agent_id.append(web::BuildOSCpuInfo());
398 398
399 network_session_configurator::ParseFieldTrials(true, true, quic_user_agent_id, 399 network_session_configurator::ParseFieldTrials(true, quic_user_agent_id,
400 &params_); 400 &params_);
401 const version_info::Channel channel = ::GetChannel(); 401 const version_info::Channel channel = ::GetChannel();
402 if (channel == version_info::Channel::UNKNOWN || 402 if (channel == version_info::Channel::UNKNOWN ||
403 channel == version_info::Channel::CANARY || 403 channel == version_info::Channel::CANARY ||
404 channel == version_info::Channel::DEV) { 404 channel == version_info::Channel::DEV) {
405 globals_->url_request_backoff_manager.reset( 405 globals_->url_request_backoff_manager.reset(
406 new net::URLRequestBackoffManager()); 406 new net::URLRequestBackoffManager());
407 } 407 }
408 408
409 // InitSystemRequestContext turns right around and posts a task back 409 // InitSystemRequestContext turns right around and posts a task back
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 559
560 globals->system_http_network_session.reset( 560 globals->system_http_network_session.reset(
561 new net::HttpNetworkSession(system_params)); 561 new net::HttpNetworkSession(system_params));
562 globals->system_http_transaction_factory.reset( 562 globals->system_http_transaction_factory.reset(
563 new net::HttpNetworkLayer(globals->system_http_network_session.get())); 563 new net::HttpNetworkLayer(globals->system_http_network_session.get()));
564 context->set_http_transaction_factory( 564 context->set_http_transaction_factory(
565 globals->system_http_transaction_factory.get()); 565 globals->system_http_transaction_factory.get());
566 566
567 return context; 567 return context;
568 } 568 }
OLDNEW
« no previous file with comments | « components/network_session_configurator/network_session_configurator_unittest.cc ('k') | ios/crnet/crnet_environment.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698