Chromium Code Reviews| 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 |