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

Unified Diff: trunk/src/net/socket_stream/socket_stream.cc

Issue 24251011: Revert 224269 "Don't persist HPKP if PrivacyMode is enabled." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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
« no previous file with comments | « trunk/src/net/socket_stream/socket_stream.h ('k') | trunk/src/net/socket_stream/socket_stream_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/net/socket_stream/socket_stream.cc
===================================================================
--- trunk/src/net/socket_stream/socket_stream.cc (revision 224274)
+++ trunk/src/net/socket_stream/socket_stream.cc (working copy)
@@ -132,14 +132,6 @@
return url_.SchemeIs("wss");
}
-GURL SocketStream::GetURLForCookies(const GURL& url) {
- std::string scheme = url.SchemeIs("wss") ? "https" : "http";
- url_canon::Replacements<char> replacements;
- replacements.SetScheme(scheme.c_str(),
- url_parse::Component(0, scheme.length()));
- return url.ReplaceComponents(replacements);
-}
-
void SocketStream::set_context(URLRequestContext* context) {
const URLRequestContext* prev_context = context_;
@@ -1335,12 +1327,9 @@
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_for_cookies()),
&domain_state) &&
domain_state.ShouldSSLErrorsBeFatal();
« no previous file with comments | « trunk/src/net/socket_stream/socket_stream.h ('k') | trunk/src/net/socket_stream/socket_stream_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698