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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 main_context->set_network_delegate(network_delegate()); | 472 main_context->set_network_delegate(network_delegate()); |
473 | 473 |
474 main_context->set_http_server_properties(http_server_properties()); | 474 main_context->set_http_server_properties(http_server_properties()); |
475 | 475 |
476 main_context->set_host_resolver( | 476 main_context->set_host_resolver( |
477 io_thread_globals->host_resolver.get()); | 477 io_thread_globals->host_resolver.get()); |
478 main_context->set_cert_transparency_verifier( | 478 main_context->set_cert_transparency_verifier( |
479 io_thread_globals->cert_transparency_verifier.get()); | 479 io_thread_globals->cert_transparency_verifier.get()); |
480 main_context->set_http_auth_handler_factory( | 480 main_context->set_http_auth_handler_factory( |
481 io_thread_globals->http_auth_handler_factory.get()); | 481 io_thread_globals->http_auth_handler_factory.get()); |
| 482 main_context->set_cert_policy_enforcer( |
| 483 io_thread_globals->cert_policy_enforcer.get()); |
482 | 484 |
483 main_context->set_fraudulent_certificate_reporter( | 485 main_context->set_fraudulent_certificate_reporter( |
484 fraudulent_certificate_reporter()); | 486 fraudulent_certificate_reporter()); |
485 | 487 |
486 main_context->set_throttler_manager( | 488 main_context->set_throttler_manager( |
487 io_thread_globals->throttler_manager.get()); | 489 io_thread_globals->throttler_manager.get()); |
488 | 490 |
489 main_context->set_proxy_service(proxy_service()); | 491 main_context->set_proxy_service(proxy_service()); |
490 | 492 |
491 scoped_refptr<net::CookieStore> cookie_store = NULL; | 493 scoped_refptr<net::CookieStore> cookie_store = NULL; |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 transport_security_state()->DeleteAllDynamicDataSince(time); | 832 transport_security_state()->DeleteAllDynamicDataSince(time); |
831 DCHECK(http_server_properties_manager_); | 833 DCHECK(http_server_properties_manager_); |
832 http_server_properties_manager_->Clear(completion); | 834 http_server_properties_manager_->Clear(completion); |
833 } | 835 } |
834 | 836 |
835 bool ProfileImplIOData::IsDataReductionProxyEnabled() const { | 837 bool ProfileImplIOData::IsDataReductionProxyEnabled() const { |
836 return data_reduction_proxy_enabled_.GetValue() || | 838 return data_reduction_proxy_enabled_.GetValue() || |
837 CommandLine::ForCurrentProcess()->HasSwitch( | 839 CommandLine::ForCurrentProcess()->HasSwitch( |
838 data_reduction_proxy::switches::kEnableDataReductionProxy); | 840 data_reduction_proxy::switches::kEnableDataReductionProxy); |
839 } | 841 } |
OLD | NEW |