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

Unified Diff: content/browser/ssl/ssl_policy.cc

Issue 2327433002: Stop using CertStore which is not compatible with PlzNavigate. (Closed)
Patch Set: remove cert_store on ios Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/ssl/ssl_policy.h ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/ssl/ssl_policy.cc
diff --git a/content/browser/ssl/ssl_policy.cc b/content/browser/ssl/ssl_policy.cc
index 9f2acd4595d8365e317cca193e066fbddc126f6c..79d5330a2ff7a4f6f1d19964f88b795992f5b676 100644
--- a/content/browser/ssl/ssl_policy.cc
+++ b/content/browser/ssl/ssl_policy.cc
@@ -163,9 +163,9 @@ void SSLPolicy::DidRunContentWithCertErrors(NavigationEntryImpl* entry,
}
void SSLPolicy::OnRequestStarted(const GURL& url,
- int cert_id,
+ bool has_certificate,
net::CertStatus cert_status) {
- if (cert_id && url.SchemeIsCryptographic() &&
+ if (has_certificate && url.SchemeIsCryptographic() &&
!net::IsCertStatusError(cert_status)) {
// If the scheme is https: or wss: *and* the security info for the
// cert has been set (i.e. the cert id is not 0) and the cert did
@@ -259,7 +259,8 @@ void SSLPolicy::InitializeEntryIfNeeded(NavigationEntryImpl* entry) {
return;
entry->GetSSL().security_style = GetSecurityStyleForResource(
- entry->GetURL(), !!entry->GetSSL().cert_id, entry->GetSSL().cert_status);
+ entry->GetURL(), !!entry->GetSSL().certificate,
+ entry->GetSSL().cert_status);
}
} // namespace content
« no previous file with comments | « content/browser/ssl/ssl_policy.h ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698