| OLD | NEW |
| 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 Loading... |
| 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 ¶ms_); | 400 ¶ms_); |
| 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 Loading... |
| 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 } |
| OLD | NEW |