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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 io_data_->http_server_properties_manager_ = | 316 io_data_->http_server_properties_manager_ = |
317 chrome_browser_net::HttpServerPropertiesManagerFactory::CreateManager( | 317 chrome_browser_net::HttpServerPropertiesManagerFactory::CreateManager( |
318 pref_service); | 318 pref_service); |
319 io_data_->set_http_server_properties( | 319 io_data_->set_http_server_properties( |
320 scoped_ptr<net::HttpServerProperties>( | 320 scoped_ptr<net::HttpServerProperties>( |
321 io_data_->http_server_properties_manager_)); | 321 io_data_->http_server_properties_manager_)); |
322 io_data_->session_startup_pref()->Init( | 322 io_data_->session_startup_pref()->Init( |
323 prefs::kRestoreOnStartup, pref_service); | 323 prefs::kRestoreOnStartup, pref_service); |
324 io_data_->session_startup_pref()->MoveToThread( | 324 io_data_->session_startup_pref()->MoveToThread( |
325 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 325 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
326 #if defined(FULL_SAFE_BROWSING) || defined(MOBILE_SAFE_BROWSING) | 326 #if defined(SAFE_BROWSING_SERVICE) |
327 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled, | 327 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled, |
328 pref_service); | 328 pref_service); |
329 io_data_->safe_browsing_enabled()->MoveToThread( | 329 io_data_->safe_browsing_enabled()->MoveToThread( |
330 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 330 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
331 #endif | 331 #endif |
332 #if defined(OS_ANDROID) || defined(OS_IOS) | 332 #if defined(OS_ANDROID) || defined(OS_IOS) |
333 io_data_->data_reduction_proxy_enabled()->Init( | 333 io_data_->data_reduction_proxy_enabled()->Init( |
334 data_reduction_proxy::prefs::kDataReductionProxyEnabled, pref_service); | 334 data_reduction_proxy::prefs::kDataReductionProxyEnabled, pref_service); |
335 io_data_->data_reduction_proxy_enabled()->MoveToThread( | 335 io_data_->data_reduction_proxy_enabled()->MoveToThread( |
336 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 336 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 const base::Closure& completion) { | 752 const base::Closure& completion) { |
753 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 753 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
754 DCHECK(initialized()); | 754 DCHECK(initialized()); |
755 | 755 |
756 DCHECK(transport_security_state()); | 756 DCHECK(transport_security_state()); |
757 // Completes synchronously. | 757 // Completes synchronously. |
758 transport_security_state()->DeleteAllDynamicDataSince(time); | 758 transport_security_state()->DeleteAllDynamicDataSince(time); |
759 DCHECK(http_server_properties_manager_); | 759 DCHECK(http_server_properties_manager_); |
760 http_server_properties_manager_->Clear(completion); | 760 http_server_properties_manager_->Clear(completion); |
761 } | 761 } |
OLD | NEW |