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

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

Issue 2350273002: Add SSLStatus flags to feed HTTP_WARNING security level (Closed)
Patch Set: fix comment typos Created 4 years, 3 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 a2a46acabd05abc9fb3881be3f947aff3dc6b0b3..41df0ef04cf7c9c46206623d279a0cfd28069857 100644
--- a/chrome/browser/ssl/chrome_security_state_model_client.cc
+++ b/chrome/browser/ssl/chrome_security_state_model_client.cc
@@ -391,6 +391,12 @@ void ChromeSecurityStateModelClient::GetVisibleSecurityState(
content::SSLStatus::DISPLAYED_CONTENT_WITH_CERT_ERRORS);
state->ran_content_with_cert_errors =
!!(ssl.content_status & content::SSLStatus::RAN_CONTENT_WITH_CERT_ERRORS);
+ state->displayed_nonsecure_password_field =
+ !!(ssl.content_status &
+ content::SSLStatus::DISPLAYED_NONSECURE_PASSWORD_FIELD);
+ state->displayed_nonsecure_credit_card_field =
+ !!(ssl.content_status &
+ content::SSLStatus::DISPLAYED_NONSECURE_CREDIT_CARD_FIELD);
CheckSafeBrowsingStatus(entry, web_contents_, state);
}

Powered by Google App Engine
This is Rietveld 408576698