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

Side by Side Diff: chromecast/browser/url_request_context_factory.cc

Issue 2937563002: Remove the EV Certs Whitelist (Closed)
Patch Set: Update comment Created 3 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chromecast/browser/url_request_context_factory.h" 5 #include "chromecast/browser/url_request_context_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 public: 56 public:
57 IgnoresCTPolicyEnforcer() = default; 57 IgnoresCTPolicyEnforcer() = default;
58 ~IgnoresCTPolicyEnforcer() override = default; 58 ~IgnoresCTPolicyEnforcer() override = default;
59 59
60 net::ct::CertPolicyCompliance DoesConformToCertPolicy( 60 net::ct::CertPolicyCompliance DoesConformToCertPolicy(
61 net::X509Certificate* cert, 61 net::X509Certificate* cert,
62 const net::SCTList& verified_scts, 62 const net::SCTList& verified_scts,
63 const net::NetLogWithSource& net_log) override { 63 const net::NetLogWithSource& net_log) override {
64 return net::ct::CertPolicyCompliance::CERT_POLICY_COMPLIES_VIA_SCTS; 64 return net::ct::CertPolicyCompliance::CERT_POLICY_COMPLIES_VIA_SCTS;
65 } 65 }
66
67 net::ct::EVPolicyCompliance DoesConformToCTEVPolicy(
68 net::X509Certificate* cert,
69 const net::ct::EVCertsWhitelist* ev_whitelist,
70 const net::SCTList& verified_scts,
71 const net::NetLogWithSource& net_log) override {
72 return net::ct::EVPolicyCompliance::EV_POLICY_DOES_NOT_APPLY;
73 }
74 }; 66 };
75 67
76 bool IgnoreCertificateErrors() { 68 bool IgnoreCertificateErrors() {
77 base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); 69 base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
78 return cmd_line->HasSwitch(switches::kIgnoreCertificateErrors); 70 return cmd_line->HasSwitch(switches::kIgnoreCertificateErrors);
79 } 71 }
80 72
81 } // namespace 73 } // namespace
82 74
83 // Private classes to expose URLRequestContextGetter that call back to the 75 // Private classes to expose URLRequestContextGetter that call back to the
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 if (media_getter_) { 470 if (media_getter_) {
479 media_getter_->GetURLRequestContext() 471 media_getter_->GetURLRequestContext()
480 ->http_transaction_factory() 472 ->http_transaction_factory()
481 ->GetSession() 473 ->GetSession()
482 ->DisableQuic(); 474 ->DisableQuic();
483 } 475 }
484 } 476 }
485 477
486 } // namespace shell 478 } // namespace shell
487 } // namespace chromecast 479 } // namespace chromecast
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/ev_whitelist_component_installer.cc ('k') | components/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698