From ca274f7be0dca936b05c321327fe603c90b68c0c Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 18 May 2017 13:37:32 -0700 Subject: [PATCH] Use kIgnoreCertificateErrors from content_switches.h --- brightray/browser/url_request_context_getter.cc | 2 +- brightray/common/switches.cc | 3 --- brightray/common/switches.h | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/brightray/browser/url_request_context_getter.cc b/brightray/browser/url_request_context_getter.cc index 209260ace1c3..c6045e34c059 100644 --- a/brightray/browser/url_request_context_getter.cc +++ b/brightray/browser/url_request_context_getter.cc @@ -307,7 +307,7 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() { network_session_params.enable_http2 = false; // --ignore-certificate-errors - if (command_line.HasSwitch(switches::kIgnoreCertificateErrors)) + if (command_line.HasSwitch(::switches::kIgnoreCertificateErrors)) network_session_params.ignore_certificate_errors = true; // --host-rules diff --git a/brightray/common/switches.cc b/brightray/common/switches.cc index 17ca05857739..fb281de82822 100644 --- a/brightray/common/switches.cc +++ b/brightray/common/switches.cc @@ -50,9 +50,6 @@ const char kAuthServerWhitelist[] = "auth-server-whitelist"; const char kAuthNegotiateDelegateWhitelist[] = "auth-negotiate-delegate-whitelist"; -// Ignores certificate-related errors. -const char kIgnoreCertificateErrors[] = "ignore-certificate-errors"; - // Forces the maximum disk space to be used by the disk cache, in bytes. const char kDiskCacheSize[] = "disk-cache-size"; diff --git a/brightray/common/switches.h b/brightray/common/switches.h index 286c4d633b91..6262f5f962ca 100644 --- a/brightray/common/switches.h +++ b/brightray/common/switches.h @@ -17,7 +17,6 @@ extern const char kProxyPacUrl[]; extern const char kDisableHttp2[]; extern const char kAuthServerWhitelist[]; extern const char kAuthNegotiateDelegateWhitelist[]; -extern const char kIgnoreCertificateErrors[]; extern const char kDiskCacheSize[]; } // namespace switches