Browse Source

Use kIgnoreCertificateErrors from content_switches.h

Kevin Sawicki 8 years ago
parent
commit
ca274f7be0

+ 1 - 1
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

+ 0 - 3
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";
 

+ 0 - 1
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