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

Unified Diff: chrome/browser/ssl/chrome_security_state_model_client.cc

Issue 2226523002: Add separate plumbing for subresources with certificate errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo 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: chrome/browser/ssl/chrome_security_state_model_client.cc
diff --git a/chrome/browser/ssl/chrome_security_state_model_client.cc b/chrome/browser/ssl/chrome_security_state_model_client.cc
index 3e1834b210eaa2ecdf6587c9452db0ccdf779ce1..36baa94a98db29b40dae08b69502dcec7bb81742 100644
--- a/chrome/browser/ssl/chrome_security_state_model_client.cc
+++ b/chrome/browser/ssl/chrome_security_state_model_client.cc
@@ -246,10 +246,13 @@ void ChromeSecurityStateModelClient::GetVisibleSecurityState(
ssl.sct_statuses.begin(),
ssl.sct_statuses.end());
state->displayed_mixed_content =
- (ssl.content_status & content::SSLStatus::DISPLAYED_INSECURE_CONTENT)
- ? true
- : false;
+ !!(ssl.content_status & content::SSLStatus::DISPLAYED_INSECURE_CONTENT);
state->ran_mixed_content =
- (ssl.content_status & content::SSLStatus::RAN_INSECURE_CONTENT) ? true
- : false;
+ !!(ssl.content_status & content::SSLStatus::RAN_INSECURE_CONTENT);
+ state->displayed_content_with_certificate_errors =
+ !!(ssl.content_status &
+ content::SSLStatus::DISPLAYED_CONTENT_WITH_CERTIFICATE_ERRORS);
+ state->ran_content_with_certificate_errors =
+ !!(ssl.content_status &
+ content::SSLStatus::RAN_CONTENT_WITH_CERTIFICATE_ERRORS);
}
« no previous file with comments | « android_webview/browser/aw_ssl_host_state_delegate.cc ('k') | chrome/browser/ssl/chrome_ssl_host_state_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698