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

Unified Diff: chrome/browser/net/ssl_config_service_manager_pref.cc

Issue 502087: Use Separate SSL Session Cache in OTR Mode (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/profile.cc » ('j') | net/socket/ssl_client_socket_mac.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/ssl_config_service_manager_pref.cc
===================================================================
--- chrome/browser/net/ssl_config_service_manager_pref.cc (revision 51274)
+++ chrome/browser/net/ssl_config_service_manager_pref.cc (working copy)
@@ -82,6 +82,7 @@
BooleanPrefMember ssl2_enabled_;
BooleanPrefMember ssl3_enabled_;
BooleanPrefMember tls1_enabled_;
+ bool otr_mode_;
scoped_refptr<SSLConfigServicePref> ssl_config_service_;
@@ -100,6 +101,10 @@
// Initialize from UI thread. This is okay as there shouldn't be anything on
// the IO thread trying to access it yet.
+ if (profile->IsOffTheRecord())
+ otr_mode_ = true;
+ else
+ otr_mode_ = false;
GetSSLConfigFromPrefs(&ssl_config_service_->cached_config_);
}
@@ -145,6 +150,7 @@
config->ssl2_enabled = ssl2_enabled_.GetValue();
config->ssl3_enabled = ssl3_enabled_.GetValue();
config->tls1_enabled = tls1_enabled_.GetValue();
+ config->otr_mode = otr_mode_;
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | chrome/browser/profile.cc » ('j') | net/socket/ssl_client_socket_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698