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

Unified Diff: components/cronet/url_request_context_config.cc

Issue 1389213003: [Cronet] Use Https for Quic Test Server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ryancl
Patch Set: Created 5 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: components/cronet/url_request_context_config.cc
diff --git a/components/cronet/url_request_context_config.cc b/components/cronet/url_request_context_config.cc
index da924532bbbf241de19b7963b43cfca74925bc54..8759ca9578b61f468e9f41d76c2e4e0ee7551cfc 100644
--- a/components/cronet/url_request_context_config.cc
+++ b/components/cronet/url_request_context_config.cc
@@ -80,6 +80,11 @@ void URLRequestContextConfig::ConfigureURLRequestContextBuilder(
net::QuicUtils::ParseQuicConnectionOptions(quic_connection_options));
context_builder->set_sdch_enabled(enable_sdch);
+#if defined(CRONET_TEST)
+ // Used in testing to trust local certs.
+ // TODO(xunjieli): Figure out a reliable way to install a local CA cert.
Ryan Hamilton 2015/10/08 21:29:17 The easiest way to do this for testing is to simpl
xunjieli 2015/10/08 22:21:23 This is actually our production code. A block of M
+ context_builder->set_ignore_certificate_errors(true);
+#endif
}
// static

Powered by Google App Engine
This is Rietveld 408576698