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

Unified Diff: components/security_state/security_state_model.cc

Issue 2066483009: Expose SSLInfo::pkp_bypassed to devtools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove change to browser_protocol.json Created 4 years, 6 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 | « components/security_state/security_state_model.h ('k') | content/common/ssl_status_serialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/security_state/security_state_model.cc
diff --git a/components/security_state/security_state_model.cc b/components/security_state/security_state_model.cc
index 2efa11c02c8277b886a1294a80306688fc4bb599..4084402f050039697445c820841a3010ab72a643 100644
--- a/components/security_state/security_state_model.cc
+++ b/components/security_state/security_state_model.cc
@@ -184,6 +184,7 @@ void SecurityInfoForRequest(
security_info->cert_status = visible_security_state.cert_status;
security_info->scheme_is_cryptographic =
visible_security_state.url.SchemeIsCryptographic();
+ security_info->pkp_bypassed = visible_security_state.pkp_bypassed;
security_info->is_secure_protocol_and_ciphersuite =
(net::SSLConnectionStatusToVersion(security_info->connection_status) >=
net::SSL_CONNECTION_VERSION_TLS1_2 &&
@@ -217,7 +218,8 @@ SecurityStateModel::SecurityInfo::SecurityInfo()
cert_id(0),
security_bits(-1),
connection_status(0),
- is_secure_protocol_and_ciphersuite(false) {}
+ is_secure_protocol_and_ciphersuite(false),
+ pkp_bypassed(false) {}
SecurityStateModel::SecurityInfo::~SecurityInfo() {}
@@ -263,7 +265,8 @@ SecurityStateModel::VisibleSecurityState::VisibleSecurityState()
connection_status(0),
security_bits(-1),
displayed_mixed_content(false),
- ran_mixed_content(false) {}
+ ran_mixed_content(false),
+ pkp_bypassed(false) {}
SecurityStateModel::VisibleSecurityState::~VisibleSecurityState() {}
@@ -276,7 +279,8 @@ bool SecurityStateModel::VisibleSecurityState::operator==(
security_bits == other.security_bits &&
sct_verify_statuses == other.sct_verify_statuses &&
displayed_mixed_content == other.displayed_mixed_content &&
- ran_mixed_content == other.ran_mixed_content);
+ ran_mixed_content == other.ran_mixed_content &&
+ pkp_bypassed == other.pkp_bypassed);
}
} // namespace security_state
« no previous file with comments | « components/security_state/security_state_model.h ('k') | content/common/ssl_status_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698