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

Unified Diff: net/socket_stream/socket_stream_job.cc

Issue 103803012: Make HSTS headers not clobber preloaded pins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser_tests by setting the domain name correctly. Rebase. Created 6 years, 8 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 f2de82324ac69b1a8a1e8c9ebae3446757a4c4e1..a2bb7810dbbd4b75d096b6ef400719e67f657616 100644
--- a/net/socket_stream/socket_stream_job.cc
+++ b/net/socket_stream/socket_stream_job.cc
@@ -28,10 +28,9 @@ SocketStreamJob* SocketStreamJob::CreateSocketStreamJob(
URLRequestContext* context,
CookieStore* cookie_store) {
GURL socket_url(url);
- TransportSecurityState::DomainState domain_state;
- if (url.scheme() == "ws" && sts && sts->GetDomainState(
- url.host(), SSLConfigService::IsSNIAvailable(ssl), &domain_state) &&
- domain_state.ShouldUpgradeToSSL()) {
+ if (url.scheme() == "ws" && sts &&
+ sts->ShouldUpgradeToSSL(url.host(),
+ SSLConfigService::IsSNIAvailable(ssl))) {
url_canon::Replacements<char> replacements;
static const char kNewScheme[] = "wss";
replacements.SetScheme(kNewScheme,

Powered by Google App Engine
This is Rietveld 408576698