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

Side by Side Diff: chrome/browser/io_thread.cc

Issue 511473002: Remove implicit conversions from scoped_refptr to T* in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move download out Created 6 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/io_thread.h" 5 #include "chrome/browser/io_thread.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 system_params.proxy_service = globals_->system_proxy_service.get(); 1117 system_params.proxy_service = globals_->system_proxy_service.get();
1118 1118
1119 globals_->system_http_transaction_factory.reset( 1119 globals_->system_http_transaction_factory.reset(
1120 new net::HttpNetworkLayer( 1120 new net::HttpNetworkLayer(
1121 new net::HttpNetworkSession(system_params))); 1121 new net::HttpNetworkSession(system_params)));
1122 globals_->system_url_request_job_factory.reset( 1122 globals_->system_url_request_job_factory.reset(
1123 new net::URLRequestJobFactoryImpl()); 1123 new net::URLRequestJobFactoryImpl());
1124 globals_->system_request_context.reset( 1124 globals_->system_request_context.reset(
1125 ConstructSystemRequestContext(globals_, net_log_)); 1125 ConstructSystemRequestContext(globals_, net_log_));
1126 globals_->system_request_context->set_ssl_config_service( 1126 globals_->system_request_context->set_ssl_config_service(
1127 globals_->ssl_config_service); 1127 globals_->ssl_config_service.get());
1128 globals_->system_request_context->set_http_server_properties( 1128 globals_->system_request_context->set_http_server_properties(
1129 globals_->http_server_properties->GetWeakPtr()); 1129 globals_->http_server_properties->GetWeakPtr());
1130 } 1130 }
1131 1131
1132 void IOThread::UpdateDnsClientEnabled() { 1132 void IOThread::UpdateDnsClientEnabled() {
1133 globals()->host_resolver->SetDnsClientEnabled(*dns_client_enabled_); 1133 globals()->host_resolver->SetDnsClientEnabled(*dns_client_enabled_);
1134 } 1134 }
1135 1135
1136 void IOThread::ConfigureQuic(const CommandLine& command_line) { 1136 void IOThread::ConfigureQuic(const CommandLine& command_line) {
1137 // Always fetch the field trial group to ensure it is reported correctly. 1137 // Always fetch the field trial group to ensure it is reported correctly.
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1392 net::QuicVersionVector supported_versions = net::QuicSupportedVersions(); 1392 net::QuicVersionVector supported_versions = net::QuicSupportedVersions();
1393 for (size_t i = 0; i < supported_versions.size(); ++i) { 1393 for (size_t i = 0; i < supported_versions.size(); ++i) {
1394 net::QuicVersion version = supported_versions[i]; 1394 net::QuicVersion version = supported_versions[i];
1395 if (net::QuicVersionToString(version) == quic_version) { 1395 if (net::QuicVersionToString(version) == quic_version) {
1396 return version; 1396 return version;
1397 } 1397 }
1398 } 1398 }
1399 1399
1400 return net::QUIC_VERSION_UNSUPPORTED; 1400 return net::QUIC_VERSION_UNSUPPORTED;
1401 } 1401 }
OLDNEW
« no previous file with comments | « chrome/browser/history/history_service.cc ('k') | chrome/browser/nacl_host/nacl_browser_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698