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

Unified Diff: net/http/transport_security_state.cc

Issue 2467953002: Deprecate old PublicKeyPinFailureDomain histogram (Closed)
Patch Set: Created 4 years, 1 month 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 | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/transport_security_state.cc
diff --git a/net/http/transport_security_state.cc b/net/http/transport_security_state.cc
index 9ec992572ab7abcdad5b82da39a6f7eb2f1b5aba..4b3691d41159fe058c3ed5c25bc401cfe4242ab8 100644
--- a/net/http/transport_security_state.cc
+++ b/net/http/transport_security_state.cc
@@ -392,7 +392,6 @@ class HuffmanDecoder {
// data.
struct PreloadResult {
uint32_t pinset_id;
- uint32_t domain_id;
// hostname_offset contains the number of bytes from the start of the given
// hostname where the name of the matching entry starts.
size_t hostname_offset;
@@ -524,8 +523,9 @@ bool DecodeHSTSPreloadRaw(const std::string& search_hostname,
tmp.pkp_include_subdomains = tmp.sts_include_subdomains;
if (tmp.has_pins) {
+ uint32_t unused_domain_id;
if (!reader.Read(4, &tmp.pinset_id) ||
- !reader.Read(9, &tmp.domain_id) ||
+ !reader.Read(9, &unused_domain_id) ||
davidben 2016/11/01 17:20:22 Could you file a bug to get rid of this and link i
estark 2016/11/01 17:25:47 Done (bug 661206).
(!tmp.sts_include_subdomains &&
!reader.Next(&tmp.pkp_include_subdomains))) {
return false;
@@ -778,10 +778,6 @@ TransportSecurityState::PKPStatus TransportSecurityState::CheckPublicKeyPins(
if (!is_issued_by_known_root)
return pin_validity;
- if (pin_validity == PKPStatus::VIOLATED) {
- LOG(ERROR) << *pinning_failure_log;
- ReportUMAOnPinFailure(host_port_pair.host());
- }
UMA_HISTOGRAM_BOOLEAN("Net.PublicKeyPinSuccess",
pin_validity == PKPStatus::OK);
return pin_validity;
@@ -1354,20 +1350,6 @@ void TransportSecurityState::ProcessExpectCTHeader(
}
// static
-void TransportSecurityState::ReportUMAOnPinFailure(const std::string& host) {
- PreloadResult result;
- if (!DecodeHSTSPreload(host, &result) ||
- !result.has_pins) {
- return;
- }
-
- DCHECK(result.domain_id != DOMAIN_NOT_PINNED);
-
- UMA_HISTOGRAM_SPARSE_SLOWLY(
- "Net.PublicKeyPinFailureDomain", result.domain_id);
-}
-
-// static
void TransportSecurityState::SetShouldRequireCTForTesting(bool* required) {
if (!required) {
g_ct_required_for_testing = 0;
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698