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 return; | 316 return; |
317 | 317 |
318 // Set initialized_ to true at the beginning in case any of the objects | 318 // Set initialized_ to true at the beginning in case any of the objects |
319 // below try to get the ResourceContext pointer. | 319 // below try to get the ResourceContext pointer. |
320 initialized_ = true; | 320 initialized_ = true; |
321 PrefService* pref_service = profile_->GetPrefs(); | 321 PrefService* pref_service = profile_->GetPrefs(); |
322 io_data_->http_server_properties_manager_ = | 322 io_data_->http_server_properties_manager_ = |
323 new chrome_browser_net::HttpServerPropertiesManager(pref_service); | 323 new chrome_browser_net::HttpServerPropertiesManager(pref_service); |
324 io_data_->set_http_server_properties( | 324 io_data_->set_http_server_properties( |
325 scoped_ptr<net::HttpServerProperties>( | 325 scoped_ptr<net::HttpServerProperties>( |
326 io_data_->http_server_properties_manager_)); | 326 io_data_->http_server_properties_manager_->http_server_properties())); |
327 io_data_->session_startup_pref()->Init( | 327 io_data_->session_startup_pref()->Init( |
328 prefs::kRestoreOnStartup, pref_service); | 328 prefs::kRestoreOnStartup, pref_service); |
329 io_data_->session_startup_pref()->MoveToThread( | 329 io_data_->session_startup_pref()->MoveToThread( |
330 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 330 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
331 #if defined(FULL_SAFE_BROWSING) || defined(MOBILE_SAFE_BROWSING) | 331 #if defined(FULL_SAFE_BROWSING) || defined(MOBILE_SAFE_BROWSING) |
332 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled, | 332 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled, |
333 pref_service); | 333 pref_service); |
334 io_data_->safe_browsing_enabled()->MoveToThread( | 334 io_data_->safe_browsing_enabled()->MoveToThread( |
335 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 335 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
336 #endif | 336 #endif |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 void ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread( | 764 void ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread( |
765 base::Time time, | 765 base::Time time, |
766 const base::Closure& completion) { | 766 const base::Closure& completion) { |
767 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 767 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
768 DCHECK(initialized()); | 768 DCHECK(initialized()); |
769 | 769 |
770 DCHECK(transport_security_state()); | 770 DCHECK(transport_security_state()); |
771 // Completes synchronously. | 771 // Completes synchronously. |
772 transport_security_state()->DeleteAllDynamicDataSince(time); | 772 transport_security_state()->DeleteAllDynamicDataSince(time); |
773 DCHECK(http_server_properties_manager_); | 773 DCHECK(http_server_properties_manager_); |
774 http_server_properties_manager_->Clear(completion); | 774 // XXX: fix me |
| 775 //http_server_properties_manager_->Clear(completion); |
775 } | 776 } |
OLD | NEW |