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

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: Address codereview nit and fix compilation error in OFFICIAL_BUILD. Created 7 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: 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..7c12cc8c6b3afa4486e375bd1cc1cebcca6d632f 100644
--- a/net/socket_stream/socket_stream_job.cc
+++ b/net/socket_stream/socket_stream_job.cc
@@ -27,8 +27,12 @@ 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, SocketStream::GetURLForCookies(url)),
+ &domain_state) &&
domain_state.ShouldUpgradeToSSL()) {
url_canon::Replacements<char> replacements;
static const char kNewScheme[] = "wss";

Powered by Google App Engine
This is Rietveld 408576698