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

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

Issue 465133004: Remove DenyCertForHost from SSLHostStateDelegate API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 6 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_backend.h ('k') | content/public/browser/ssl_host_state_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/ssl/ssl_policy_backend.cc
diff --git a/content/browser/ssl/ssl_policy_backend.cc b/content/browser/ssl/ssl_policy_backend.cc
index 49817d04fdd823620e10b3668c543985e7a8fc94..5c65874821966a32330fe4689d4ef7c36ff9e023 100644
--- a/content/browser/ssl/ssl_policy_backend.cc
+++ b/content/browser/ssl/ssl_policy_backend.cc
@@ -31,13 +31,6 @@ bool SSLPolicyBackend::DidHostRunInsecureContent(const std::string& host,
return ssl_host_state_delegate_->DidHostRunInsecureContent(host, pid);
}
-void SSLPolicyBackend::DenyCertForHost(const net::X509Certificate& cert,
- const std::string& host,
- net::CertStatus error) {
- if (ssl_host_state_delegate_)
- ssl_host_state_delegate_->DenyCert(host, cert, error);
-}
-
void SSLPolicyBackend::AllowCertForHost(const net::X509Certificate& cert,
const std::string& host,
net::CertStatus error) {
@@ -45,16 +38,15 @@ void SSLPolicyBackend::AllowCertForHost(const net::X509Certificate& cert,
ssl_host_state_delegate_->AllowCert(host, cert, error);
}
-net::CertPolicy::Judgment SSLPolicyBackend::QueryPolicy(
+SSLHostStateDelegate::CertJudgment SSLPolicyBackend::QueryPolicy(
const net::X509Certificate& cert,
const std::string& host,
net::CertStatus error,
bool* expired_previous_decision) {
- if (!ssl_host_state_delegate_)
- return net::CertPolicy::UNKNOWN;
-
- return ssl_host_state_delegate_->QueryPolicy(
- host, cert, error, expired_previous_decision);
+ return ssl_host_state_delegate_ ?
+ ssl_host_state_delegate_->QueryPolicy(
+ host, cert, error, expired_previous_decision) :
+ SSLHostStateDelegate::DENIED;
}
} // namespace content
« no previous file with comments | « content/browser/ssl/ssl_policy_backend.h ('k') | content/public/browser/ssl_host_state_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698