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

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

Issue 7966005: Move TransportSecurityPersister completely to IO thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes 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/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index b4ffcf48b4bd9073f1c5694436ca5ad411bd58dc..cf39034d0443613068f261e263d65ffa62a91428 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -244,22 +244,6 @@ SSLHostState* OffTheRecordProfileImpl::GetSSLHostState() {
return ssl_host_state_.get();
}
-net::TransportSecurityState*
- OffTheRecordProfileImpl::GetTransportSecurityState() {
- if (!transport_security_state_.get()) {
- transport_security_state_ = new net::TransportSecurityState(
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kHstsHosts));
- transport_security_loader_ =
- new TransportSecurityPersister(transport_security_state_.get(),
- GetPath(),
- true /* readonly */);
- transport_security_loader_->Init();
- }
-
- return transport_security_state_.get();
-}
-
HistoryService* OffTheRecordProfileImpl::GetHistoryService(
ServiceAccessType sat) {
if (sat == EXPLICIT_ACCESS)
@@ -612,6 +596,11 @@ chrome_browser_net::Predictor* OffTheRecordProfileImpl::GetNetworkPredictor() {
return NULL;
}
+void OffTheRecordProfileImpl::DeleteTransportSecurityStateSince(
+ base::Time time) {
+ // No need to do anything here, our transport security state is read-only.
+}
+
void OffTheRecordProfileImpl::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/off_the_record_profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698