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

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

Issue 2225213004: Teach SSLHostStateDelegate about subresources with cert errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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_policy_backend.cc
diff --git a/content/browser/ssl/ssl_policy_backend.cc b/content/browser/ssl/ssl_policy_backend.cc
index a2626dac383d052c985b20d5d7fe6083907ba962..a31e2b16e06e7f7ff64bd100037c88c5b685cce2 100644
--- a/content/browser/ssl/ssl_policy_backend.cc
+++ b/content/browser/ssl/ssl_policy_backend.cc
@@ -19,7 +19,8 @@ SSLPolicyBackend::SSLPolicyBackend(NavigationControllerImpl* controller)
void SSLPolicyBackend::HostRanInsecureContent(const std::string& host, int id) {
if (ssl_host_state_delegate_)
- ssl_host_state_delegate_->HostRanInsecureContent(host, id);
+ ssl_host_state_delegate_->HostRanInsecureContent(
+ host, id, SSLHostStateDelegate::MIXED_CONTENT);
SSLManager::NotifySSLInternalStateChanged(controller_->GetBrowserContext());
}
@@ -28,7 +29,8 @@ bool SSLPolicyBackend::DidHostRunInsecureContent(const std::string& host,
if (!ssl_host_state_delegate_)
return false;
- return ssl_host_state_delegate_->DidHostRunInsecureContent(host, pid);
+ return ssl_host_state_delegate_->DidHostRunInsecureContent(
+ host, pid, SSLHostStateDelegate::MIXED_CONTENT);
}
void SSLPolicyBackend::RevokeUserAllowExceptions(const std::string& host) {
« no previous file with comments | « chrome/browser/ssl/chrome_ssl_host_state_delegate_test.cc ('k') | content/public/browser/ssl_host_state_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698