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

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

Issue 2206093004: Change SSLStatus to carry a vector of SCT statuses instead of counters (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: 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 6f242a44db8042df8ef6383c673a313d20dbe810..3e1834b210eaa2ecdf6587c9452db0ccdf779ce1 100644
--- a/chrome/browser/ssl/chrome_security_state_model_client.cc
+++ b/chrome/browser/ssl/chrome_security_state_model_client.cc
@@ -242,14 +242,9 @@ void ChromeSecurityStateModelClient::GetVisibleSecurityState(
state->security_bits = ssl.security_bits;
state->pkp_bypassed = ssl.pkp_bypassed;
state->sct_verify_statuses.clear();
- state->sct_verify_statuses.insert(state->sct_verify_statuses.end(),
- ssl.num_unknown_scts,
- net::ct::SCT_STATUS_LOG_UNKNOWN);
- state->sct_verify_statuses.insert(state->sct_verify_statuses.end(),
- ssl.num_invalid_scts,
- net::ct::SCT_STATUS_INVALID);
- state->sct_verify_statuses.insert(state->sct_verify_statuses.end(),
- ssl.num_valid_scts, net::ct::SCT_STATUS_OK);
+ state->sct_verify_statuses.insert(state->sct_verify_statuses.begin(),
+ ssl.sct_statuses.begin(),
+ ssl.sct_statuses.end());
state->displayed_mixed_content =
(ssl.content_status & content::SSLStatus::DISPLAYED_INSECURE_CONTENT)
? true

Powered by Google App Engine
This is Rietveld 408576698