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

Issue 1850853004: Use CertificateReportSender error callback to record HPKP UMA metrics (Closed)

Created:
4 years, 8 months ago by estark
Modified:
4 years, 8 months ago
Reviewers:
eroman, Mark P
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org, mab
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use CertificateReportSender error callback to record HPKP UMA metrics This CL does two things: 1. Use the CertificateReportSender error callback to record UMA metrics when we fail to send an HPKP report. 2. The error callback argument of a URLRequest* wasn't set up quite right to do this; TransportSecurityState provides the callback, but TransportSecurityState is in net/http and shouldn't depend on URLRequest. So instead I changed the callback arguments to be the report URI and the net error from sending the report. BUG=596624 Committed: https://crrev.com/f2979127c4951011a74f00fab8fdff94d87952de Cr-Commit-Position: refs/heads/master@{#385198}

Patch Set 1 #

Patch Set 2 : fix null dereference #

Total comments: 10

Patch Set 3 : rebase #

Patch Set 4 : eroman comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -14 lines) Patch
M net/http/transport_security_state.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M net/http/transport_security_state.cc View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M net/http/transport_security_state_unittest.cc View 1 2 3 4 chunks +75 lines, -0 lines 0 comments Download
M net/url_request/certificate_report_sender.h View 1 2 3 3 chunks +9 lines, -7 lines 0 comments Download
M net/url_request/certificate_report_sender.cc View 2 chunks +8 lines, -3 lines 0 comments Download
M net/url_request/certificate_report_sender_unittest.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
estark
eroman, PTAL?
4 years, 8 months ago (2016-04-02 00:06:03 UTC) #2
eroman
lgtm https://codereview.chromium.org/1850853004/diff/20001/net/http/transport_security_state.h File net/http/transport_security_state.h (right): https://codereview.chromium.org/1850853004/diff/20001/net/http/transport_security_state.h#newcode209 net/http/transport_security_state.h:209: const base::Callback<void(GURL, int)>& error_callback) = 0; why not ...
4 years, 8 months ago (2016-04-02 01:55:25 UTC) #3
estark
Thanks eroman! mpearson: can you please review histograms.xml? https://codereview.chromium.org/1850853004/diff/20001/net/http/transport_security_state.h File net/http/transport_security_state.h (right): https://codereview.chromium.org/1850853004/diff/20001/net/http/transport_security_state.h#newcode209 net/http/transport_security_state.h:209: const ...
4 years, 8 months ago (2016-04-05 00:57:30 UTC) #5
Mark P
histograms.xml lgtm Thanks for the particularly clear histogram description. --mark
4 years, 8 months ago (2016-04-05 16:58:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1850853004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1850853004/60001
4 years, 8 months ago (2016-04-05 16:59:25 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-05 17:04:51 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-04-05 17:06:17 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f2979127c4951011a74f00fab8fdff94d87952de
Cr-Commit-Position: refs/heads/master@{#385198}

Powered by Google App Engine
This is Rietveld 408576698