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

Unified Diff: net/socket_stream/socket_stream_job.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_job.cc
diff --git a/net/socket_stream/socket_stream_job.cc b/net/socket_stream/socket_stream_job.cc
index 9c13a8f3a6661ece0b456762a497124fe3e6867b..39862982e048b6ef478f2fdc836ad33d54c081ef 100644
--- a/net/socket_stream/socket_stream_job.cc
+++ b/net/socket_stream/socket_stream_job.cc
@@ -27,8 +27,11 @@ SocketStreamJob* SocketStreamJob::CreateSocketStreamJob(
SSLConfigService* ssl) {
GURL socket_url(url);
TransportSecurityState::DomainState domain_state;
- if (url.scheme() == "ws" && sts && sts->GetDomainState(
- url.host(), SSLConfigService::IsSNIAvailable(ssl), &domain_state) &&
+ if (url.scheme() == "ws" && sts &&
+ sts->GetDomainState(url.host(),
+ SSLConfigService::IsSNIAvailable(ssl),
+ delegate->CanGetCookies(NULL, url),
Ryan Sleevi 2013/08/06 22:32:11 See remark about url needing to be scheme-fixed.
mef 2013/08/09 17:04:05 Sorry, could you elaborate a little? I'm sure you
Ryan Sleevi 2013/09/13 22:14:48 Well, rather than having StreamSocket::CreateSocke
mef 2013/09/16 15:00:08 Hmm, higher level from here is SocketStreamHost an
Ryan Sleevi 2013/09/17 18:53:03 Well, the only implementation that would/should ha
+ &domain_state) &&
domain_state.ShouldUpgradeToSSL()) {
url_canon::Replacements<char> replacements;
static const char kNewScheme[] = "wss";

Powered by Google App Engine
This is Rietveld 408576698