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

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

Issue 10384211: Add SSlHostState::Clear() (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove #ifdef's, add test code Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/ssl/ssl_host_state.h ('k') | content/browser/ssl/ssl_host_state_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e0ceea46a1608ca8f9d8b7193fc51c3ff0020a6b..597ecaf1ed1fde73916b0e15bf65d72cab919f0c 100644
--- a/content/browser/ssl/ssl_host_state.cc
+++ b/content/browser/ssl/ssl_host_state.cc
@@ -50,6 +50,12 @@ void SSLHostState::AllowCertForHost(net::X509Certificate* cert,
cert_policy_for_host_[host].Allow(cert);
}
+void SSLHostState::Clear() {
+ DCHECK(CalledOnValidThread());
+
+ cert_policy_for_host_.clear();
+}
+
net::CertPolicy::Judgment SSLHostState::QueryPolicy(
net::X509Certificate* cert, const std::string& host) {
DCHECK(CalledOnValidThread());
« no previous file with comments | « content/browser/ssl/ssl_host_state.h ('k') | content/browser/ssl/ssl_host_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698