| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 io_data_->http_server_properties_manager_ = | 335 io_data_->http_server_properties_manager_ = |
| 336 chrome_browser_net::HttpServerPropertiesManagerFactory::CreateManager( | 336 chrome_browser_net::HttpServerPropertiesManagerFactory::CreateManager( |
| 337 pref_service); | 337 pref_service); |
| 338 io_data_->set_http_server_properties( | 338 io_data_->set_http_server_properties( |
| 339 scoped_ptr<net::HttpServerProperties>( | 339 scoped_ptr<net::HttpServerProperties>( |
| 340 io_data_->http_server_properties_manager_)); | 340 io_data_->http_server_properties_manager_)); |
| 341 io_data_->session_startup_pref()->Init( | 341 io_data_->session_startup_pref()->Init( |
| 342 prefs::kRestoreOnStartup, pref_service); | 342 prefs::kRestoreOnStartup, pref_service); |
| 343 io_data_->session_startup_pref()->MoveToThread( | 343 io_data_->session_startup_pref()->MoveToThread( |
| 344 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 344 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 345 #if defined(FULL_SAFE_BROWSING) || defined(MOBILE_SAFE_BROWSING) | 345 #if defined(SAFE_BROWSING_SERVICE) |
| 346 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled, | 346 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled, |
| 347 pref_service); | 347 pref_service); |
| 348 io_data_->safe_browsing_enabled()->MoveToThread( | 348 io_data_->safe_browsing_enabled()->MoveToThread( |
| 349 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 349 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 350 #endif | 350 #endif |
| 351 #if defined(OS_ANDROID) || defined(OS_IOS) | 351 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 352 io_data_->data_reduction_proxy_enabled()->Init( | 352 io_data_->data_reduction_proxy_enabled()->Init( |
| 353 data_reduction_proxy::prefs::kDataReductionProxyEnabled, pref_service); | 353 data_reduction_proxy::prefs::kDataReductionProxyEnabled, pref_service); |
| 354 io_data_->data_reduction_proxy_enabled()->MoveToThread( | 354 io_data_->data_reduction_proxy_enabled()->MoveToThread( |
| 355 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 355 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 const base::Closure& completion) { | 771 const base::Closure& completion) { |
| 772 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 772 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 773 DCHECK(initialized()); | 773 DCHECK(initialized()); |
| 774 | 774 |
| 775 DCHECK(transport_security_state()); | 775 DCHECK(transport_security_state()); |
| 776 // Completes synchronously. | 776 // Completes synchronously. |
| 777 transport_security_state()->DeleteAllDynamicDataSince(time); | 777 transport_security_state()->DeleteAllDynamicDataSince(time); |
| 778 DCHECK(http_server_properties_manager_); | 778 DCHECK(http_server_properties_manager_); |
| 779 http_server_properties_manager_->Clear(completion); | 779 http_server_properties_manager_->Clear(completion); |
| 780 } | 780 } |
| OLD | NEW |