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

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: 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);
jww 2016/08/11 18:50:15 Okay, this has me very confused. I think maybe tha
jam 2016/08/11 19:53:12 jww: since i got the next patch to review in this
estark 2016/08/11 20:58:38 Urgh, yeah, I tried to split up a giant CL into sm
jww 2016/08/11 21:13:24 Great, thanks for the clarifications!
jam 2016/08/11 21:14:04 That would be really great for readability. I've b
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(
jww 2016/08/11 18:50:15 This is especially confusing. I would expect this
estark 2016/08/11 20:58:38 Same explanation as above, I think. In the follow-
+ host, pid, SSLHostStateDelegate::MIXED_CONTENT);
}
void SSLPolicyBackend::RevokeUserAllowExceptions(const std::string& host) {

Powered by Google App Engine
This is Rietveld 408576698