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

Unified Diff: net/socket_stream/socket_stream.cc

Issue 19269012: Don't persist HPKP if PrivacyMode is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed ChromeResourceDispatcherHostDelegate::OnResponseStarted to use URLRequest::GetHSTSRedirect. Created 7 years, 5 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: net/socket_stream/socket_stream.cc
diff --git a/net/socket_stream/socket_stream.cc b/net/socket_stream/socket_stream.cc
index dca994cbada9b69c30b60eeaa877196c9dcea692..6353df7818be6560f7c0b44c818279ca781b1d22 100644
--- a/net/socket_stream/socket_stream.cc
+++ b/net/socket_stream/socket_stream.cc
@@ -1306,9 +1306,12 @@ int SocketStream::HandleCertificateError(int result) {
ssl_socket->GetSSLInfo(&ssl_info);
TransportSecurityState::DomainState domain_state;
- const bool fatal = context_->transport_security_state() &&
- context_->transport_security_state()->GetDomainState(url_.host(),
+ const bool fatal =
+ context_->transport_security_state() &&
+ context_->transport_security_state()->GetDomainState(
+ url_.host(),
SSLConfigService::IsSNIAvailable(context_->ssl_config_service()),
+ delegate_->CanGetCookies(this, url_),
palmer 2013/07/29 21:44:49 This stops requests from *using* dynamic state in
Ryan Sleevi 2013/08/06 22:32:11 Are we sure that "url_" is correct here? When loo
mef 2013/08/09 17:04:05 Hmm, the rewrite in WebSocketJob::GetURLForCookies
Ryan Sleevi 2013/08/09 17:42:30 That's what doesn't make sense - why rewrite the U
&domain_state) &&
domain_state.ShouldSSLErrorsBeFatal();

Powered by Google App Engine
This is Rietveld 408576698