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

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

Issue 2224023003: Teach SecurityStateModel about subresources with cert errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase fixup 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
« no previous file with comments | « no previous file | chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 74bf839a1a8cfcc98bdd88e1c3534bf12ecffdc0..bc917b7136d150468c3f5081bc11c7ae12363d06 100644
--- a/chrome/browser/ssl/chrome_security_state_model_client.cc
+++ b/chrome/browser/ssl/chrome_security_state_model_client.cc
@@ -246,10 +246,12 @@ 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_cert_errors =
+ !!(ssl.content_status &
+ content::SSLStatus::DISPLAYED_CONTENT_WITH_CERT_ERRORS);
+ state->ran_content_with_cert_errors =
+ !!(ssl.content_status & content::SSLStatus::RAN_CONTENT_WITH_CERT_ERRORS);
}
« no previous file with comments | « no previous file | chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698