| OLD | NEW |
| 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 <utility> | 7 #include <utility> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/base64.h" | 10 #include "base/base64.h" |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 nullptr, | 364 nullptr, |
| 365 nullptr, | 365 nullptr, |
| 366 nullptr, | 366 nullptr, |
| 367 nullptr, | 367 nullptr, |
| 368 local_state); | 368 local_state); |
| 369 ssl_config_service_manager_.reset( | 369 ssl_config_service_manager_.reset( |
| 370 ssl_config::SSLConfigServiceManager::CreateDefaultManager( | 370 ssl_config::SSLConfigServiceManager::CreateDefaultManager( |
| 371 local_state, | 371 local_state, |
| 372 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO))); | 372 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO))); |
| 373 | 373 |
| 374 base::Value* dns_client_enabled_default = new base::FundamentalValue( | 374 base::Value* dns_client_enabled_default = new base::Value( |
| 375 chrome_browser_net::ConfigureAsyncDnsFieldTrial()); | 375 chrome_browser_net::ConfigureAsyncDnsFieldTrial()); |
| 376 local_state->SetDefaultPrefValue(prefs::kBuiltInDnsClientEnabled, | 376 local_state->SetDefaultPrefValue(prefs::kBuiltInDnsClientEnabled, |
| 377 dns_client_enabled_default); | 377 dns_client_enabled_default); |
| 378 chrome_browser_net::LogAsyncDnsPrefSource( | 378 chrome_browser_net::LogAsyncDnsPrefSource( |
| 379 local_state->FindPreference(prefs::kBuiltInDnsClientEnabled)); | 379 local_state->FindPreference(prefs::kBuiltInDnsClientEnabled)); |
| 380 | 380 |
| 381 dns_client_enabled_.Init(prefs::kBuiltInDnsClientEnabled, | 381 dns_client_enabled_.Init(prefs::kBuiltInDnsClientEnabled, |
| 382 local_state, | 382 local_state, |
| 383 base::Bind(&IOThread::UpdateDnsClientEnabled, | 383 base::Bind(&IOThread::UpdateDnsClientEnabled, |
| 384 base::Unretained(this))); | 384 base::Unretained(this))); |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1075 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the | 1075 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the |
| 1076 // system URLRequestContext too. There's no reason this should be tied to a | 1076 // system URLRequestContext too. There's no reason this should be tied to a |
| 1077 // profile. | 1077 // profile. |
| 1078 return context; | 1078 return context; |
| 1079 } | 1079 } |
| 1080 | 1080 |
| 1081 const metrics::UpdateUsagePrefCallbackType& | 1081 const metrics::UpdateUsagePrefCallbackType& |
| 1082 IOThread::GetMetricsDataUseForwarder() { | 1082 IOThread::GetMetricsDataUseForwarder() { |
| 1083 return metrics_data_use_forwarder_; | 1083 return metrics_data_use_forwarder_; |
| 1084 } | 1084 } |
| OLD | NEW |