Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2664)

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 7966005: Move TransportSecurityPersister completely to IO thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 17f978c7fa66c5ae8f0e4a29750d27d9892ef39a..be6ce5b3fec725cdf4f2385bf64aee3a83625f01 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -950,22 +950,6 @@ SSLHostState* ProfileImpl::GetSSLHostState() {
return ssl_host_state_.get();
}
-net::TransportSecurityState*
- ProfileImpl::GetTransportSecurityState() {
- if (!transport_security_state_.get()) {
- transport_security_state_ = new net::TransportSecurityState(
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kHstsHosts));
- transport_security_persister_ =
- new TransportSecurityPersister(transport_security_state_.get(),
- path_,
- false /* read-write */);
- transport_security_persister_->Init();
- }
-
- return transport_security_state_.get();
-}
-
void ProfileImpl::OnPrefsLoaded(bool success) {
if (!success) {
DCHECK(delegate_);
@@ -1828,6 +1812,10 @@ chrome_browser_net::Predictor* ProfileImpl::GetNetworkPredictor() {
return predictor_;
}
+void ProfileImpl::DeleteTransportSecurityStateSince(const base::Time& time) {
+ io_data_.DeleteTransportSecurityStateSince(time);
+}
+
SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() {
if (!spellcheck_profile_.get())
spellcheck_profile_.reset(new SpellCheckProfile());

Powered by Google App Engine
This is Rietveld 408576698