From 0e0079956c27b7e7f7cfac634a15f7b9a7b59f71 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 6 Jan 2015 20:36:20 -0800 Subject: [PATCH] Add support for --ignore-certificate-errors --- brightray/browser/url_request_context_getter.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/brightray/browser/url_request_context_getter.cc b/brightray/browser/url_request_context_getter.cc index 7f2f6d878e..c2aadeba08 100644 --- a/brightray/browser/url_request_context_getter.cc +++ b/brightray/browser/url_request_context_getter.cc @@ -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);