Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 2753123002: Add --ignore-certificate-errors-spki-list switch and UMA histogram. (Closed)
Patch Set: Move test for --user-data-dir into unittest; add bad flags prompt. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "ppapi/features/features.h" 10 #include "ppapi/features/features.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 // Will also force the port of the resulting 518 // Will also force the port of the resulting
519 // socket address to be 77. 519 // socket address to be 77.
520 // "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz", 520 // "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz",
521 // except for "www.google.com". 521 // except for "www.google.com".
522 // 522 //
523 // These mappings apply to the endpoint host in a net::URLRequest (the TCP 523 // These mappings apply to the endpoint host in a net::URLRequest (the TCP
524 // connect and host resolver in a direct connection, and the CONNECT in an http 524 // connect and host resolver in a direct connection, and the CONNECT in an http
525 // proxy connection, and the endpoint host in a SOCKS proxy connection). 525 // proxy connection, and the endpoint host in a SOCKS proxy connection).
526 const char kHostRules[] = "host-rules"; 526 const char kHostRules[] = "host-rules";
527 527
528 // A set of public key hashes for which to ignore certificate-related errors.
529 //
530 // If the certificate chain presented by the server does not validate, and one
531 // or more certificates have public key hashes that match a key from this list,
532 // the error is ignored.
533 //
534 // The switch value must a be a comma-separated list of Base64-encoded SHA-256
535 // SPKI Fingerprints (RFC 7469, Section 2.4).
536 //
537 // This switch has no effect unless --user-data-dir is also present.
538 const char kIgnoreCertificateErrorsSPKIList[] =
539 "ignore-certificate-errors-spki-list";
540
528 // Causes net::URLFetchers to ignore requests for SSL client certificates, 541 // Causes net::URLFetchers to ignore requests for SSL client certificates,
529 // causing them to attempt an unauthenticated SSL/TLS session. This is intended 542 // causing them to attempt an unauthenticated SSL/TLS session. This is intended
530 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix, 543 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix,
531 // kSyncServiceURL, etc). 544 // kSyncServiceURL, etc).
532 const char kIgnoreUrlFetcherCertRequests[] = "ignore-urlfetcher-cert-requests"; 545 const char kIgnoreUrlFetcherCertRequests[] = "ignore-urlfetcher-cert-requests";
533 546
534 // Causes the browser to launch directly in incognito mode. 547 // Causes the browser to launch directly in incognito mode.
535 const char kIncognito[] = "incognito"; 548 const char kIncognito[] = "incognito";
536 549
537 // Causes Chrome to initiate an installation flow for the given app. 550 // Causes Chrome to initiate an installation flow for the given app.
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 1189
1177 // ----------------------------------------------------------------------------- 1190 // -----------------------------------------------------------------------------
1178 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. 1191 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE.
1179 // 1192 //
1180 // You were going to just dump your switches here, weren't you? Instead, please 1193 // You were going to just dump your switches here, weren't you? Instead, please
1181 // put them in alphabetical order above, or in order inside the appropriate 1194 // put them in alphabetical order above, or in order inside the appropriate
1182 // ifdef at the bottom. The order should match the header. 1195 // ifdef at the bottom. The order should match the header.
1183 // ----------------------------------------------------------------------------- 1196 // -----------------------------------------------------------------------------
1184 1197
1185 } // namespace switches 1198 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698