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/profiles/profile_impl_io_data.h" | 5 #include "chrome/browser/profiles/profile_impl_io_data.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 main_context->set_transport_security_state(transport_security_state()); | 480 main_context->set_transport_security_state(transport_security_state()); |
481 main_context->set_ct_policy_enforcer( | 481 main_context->set_ct_policy_enforcer( |
482 io_thread_globals->system_request_context->ct_policy_enforcer()); | 482 io_thread_globals->system_request_context->ct_policy_enforcer()); |
483 | 483 |
484 main_context->set_net_log(io_thread->net_log()); | 484 main_context->set_net_log(io_thread->net_log()); |
485 | 485 |
486 main_context->set_http_auth_handler_factory( | 486 main_context->set_http_auth_handler_factory( |
487 io_thread_globals->system_request_context->http_auth_handler_factory()); | 487 io_thread_globals->system_request_context->http_auth_handler_factory()); |
488 | 488 |
489 main_context->set_proxy_service(proxy_service()); | 489 main_context->set_proxy_service(proxy_service()); |
| 490 main_context->set_network_quality_estimator( |
| 491 io_thread_globals->network_quality_estimator.get()); |
490 | 492 |
491 // Create a single task runner to use with the CookieStore and ChannelIDStore. | 493 // Create a single task runner to use with the CookieStore and ChannelIDStore. |
492 scoped_refptr<base::SequencedTaskRunner> cookie_background_task_runner = | 494 scoped_refptr<base::SequencedTaskRunner> cookie_background_task_runner = |
493 base::CreateSequencedTaskRunnerWithTraits( | 495 base::CreateSequencedTaskRunnerWithTraits( |
494 {base::MayBlock(), base::TaskPriority::BACKGROUND, | 496 {base::MayBlock(), base::TaskPriority::BACKGROUND, |
495 base::TaskShutdownBehavior::BLOCK_SHUTDOWN}); | 497 base::TaskShutdownBehavior::BLOCK_SHUTDOWN}); |
496 | 498 |
497 // Set up server bound cert service. | 499 // Set up server bound cert service. |
498 DCHECK(!lazy_params_->channel_id_path.empty()); | 500 DCHECK(!lazy_params_->channel_id_path.empty()); |
499 scoped_refptr<QuotaPolicyChannelIDStore> channel_id_db = | 501 scoped_refptr<QuotaPolicyChannelIDStore> channel_id_db = |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 const base::Closure& completion) { | 797 const base::Closure& completion) { |
796 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 798 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
797 DCHECK(initialized()); | 799 DCHECK(initialized()); |
798 | 800 |
799 DCHECK(transport_security_state()); | 801 DCHECK(transport_security_state()); |
800 // Completes synchronously. | 802 // Completes synchronously. |
801 transport_security_state()->DeleteAllDynamicDataSince(time); | 803 transport_security_state()->DeleteAllDynamicDataSince(time); |
802 DCHECK(http_server_properties_manager_); | 804 DCHECK(http_server_properties_manager_); |
803 http_server_properties_manager_->Clear(completion); | 805 http_server_properties_manager_->Clear(completion); |
804 } | 806 } |
OLD | NEW |