Add support for --ignore-certificate-errors

This commit is contained in:
Cheng Zhao 2015-01-06 20:36:20 -08:00
parent 1166a56ceb
commit 0e0079956c

View file

@ -212,6 +212,10 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
network_session_params.http_auth_handler_factory =
url_request_context_->http_auth_handler_factory();
// --ignore-certificate-errors
if (command_line.HasSwitch(switches::kIgnoreCertificateErrors))
network_session_params.ignore_certificate_errors = true;
// --host-rules
if (command_line.HasSwitch(kHostRules)) {
host_mapping_rules_.reset(new net::HostMappingRules);