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

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

Issue 8857002: net: split the SSL session cache between incognito and normal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_io_data.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.cc b/chrome/browser/profiles/off_the_record_profile_io_data.cc
index b7b022ac12bee85b84854e3ef88fd58ef6f6ee22..bdf0845a9dfbdd845a8baac6798b220b04a29b27 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -134,6 +134,11 @@ void OffTheRecordProfileIOData::Handle::LazyInitialize() const {
}
}
+// The SSL session cache is partitioned by setting a string. By choosing a
+// different string here, we ensure that incognito connections don't resume
+// sessions from non-incognito connections and vice-versa.
+static const char kIncognitoSSLCacheShard[] = "incognito";
Ryan Sleevi 2011/12/12 23:07:06 agl: Once concern with using a fixed string like t
+
OffTheRecordProfileIOData::OffTheRecordProfileIOData()
: ProfileIOData(true) {}
OffTheRecordProfileIOData::~OffTheRecordProfileIOData() {}
@@ -201,6 +206,7 @@ void OffTheRecordProfileIOData::LazyInitializeInternal(
main_context->transport_security_state(),
main_context->dns_cert_checker(),
main_context->proxy_service(),
+ kIncognitoSSLCacheShard,
main_context->ssl_config_service(),
main_context->http_auth_handler_factory(),
main_context->network_delegate(),
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698