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

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

Issue 450833002: Add additional UMA stats for remembering certificate decisions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: felt nit Created 6 years, 4 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
Index: content/browser/ssl/ssl_host_state.cc
diff --git a/content/browser/ssl/ssl_host_state.cc b/content/browser/ssl/ssl_host_state.cc
index 6820a7d30da6d52c9866a974753abd6d0ca08123..9754ed910fa2a2aadb3a91f272c920fec4fc33e8 100644
--- a/content/browser/ssl/ssl_host_state.cc
+++ b/content/browser/ssl/ssl_host_state.cc
@@ -104,15 +104,19 @@ void SSLHostState::Clear() {
delegate_->Clear();
}
-net::CertPolicy::Judgment SSLHostState::QueryPolicy(net::X509Certificate* cert,
- const std::string& host,
- net::CertStatus error) {
+net::CertPolicy::Judgment SSLHostState::QueryPolicy(
+ net::X509Certificate* cert,
+ const std::string& host,
+ net::CertStatus error,
+ bool* expired_previous_decision) {
DCHECK(CalledOnValidThread());
- if (!delegate_)
+ if (!delegate_) {
+ *expired_previous_decision = false;
return net::CertPolicy::Judgment::UNKNOWN;
+ }
- return delegate_->QueryPolicy(host, cert, error);
+ return delegate_->QueryPolicy(host, cert, error, expired_previous_decision);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698