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

Unified Diff: net/url_request/url_request_test_util.cc

Issue 11192045: Process only the first Strict-Transport-Security header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/url_request/url_request_test_util.cc
===================================================================
--- net/url_request/url_request_test_util.cc (revision 161880)
+++ net/url_request/url_request_test_util.cc (working copy)
@@ -84,6 +84,10 @@
context_storage_.set_http_server_properties(
new net::HttpServerPropertiesImpl);
}
+ if (!transport_security_state()) {
+ context_storage_.set_transport_security_state(
+ new net::TransportSecurityState());
+ }
net::HttpNetworkSession::Params params;
params.host_resolver = host_resolver();
params.cert_verifier = cert_verifier();

Powered by Google App Engine
This is Rietveld 408576698