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

Issue 2120683002: Fix up certificate error reporting histograms (Closed)

Created:
4 years, 5 months ago by estark
Modified:
4 years, 5 months ago
CC:
asvitkine+watch_chromium.org, blundell+watchlist_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, droger+watchlist_chromium.org, sdefresne+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix up certificate error reporting histograms This CL adds a failure histogram for certificate error reporting, similar to the histograms we have for Expect CT and HPKP reports. It also negates the net error codes for Expect CT and HPKP histograms, to match up with the histogram enums. (See bug 616599.) BUG=616599, 596624 Committed: https://crrev.com/a79bbb7b735bfbc7b84518bdd6f166a2fb39f7c1 Cr-Commit-Position: refs/heads/master@{#406604}

Patch Set 1 #

Total comments: 5

Patch Set 2 : fix BUILD.gn #

Patch Set 3 : add note to histograms.xml #

Patch Set 4 : components/BUILD.gn fix, don't build unit tests on iOS #

Total comments: 1

Patch Set 5 : rename histograms #

Patch Set 6 : another ios fix... maybe #

Patch Set 7 : rebase #

Patch Set 8 : remove unused ios certificate_reporting dependency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -21 lines) Patch
M chrome/browser/ssl/chrome_expect_ct_reporter.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M components/certificate_reporting/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/certificate_reporting/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/certificate_reporting/error_reporter.cc View 1 2 3 4 5 6 2 chunks +15 lines, -6 lines 0 comments Download
M components/certificate_reporting/error_reporter_unittest.cc View 1 2 3 4 5 6 5 chunks +59 lines, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M ios/chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ios/chrome/browser/DEPS View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ios/chrome/browser/ssl/ios_ssl_blocking_page.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ios/chrome/ios_chrome.gyp View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M net/http/transport_security_state.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/transport_security_state_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (8 generated)
estark
Can you please review... felt: components/certificate_reporting and chrome/browser/ssl eroman: net/http/transport_security_state mpearson: histograms.xml Thanks!
4 years, 5 months ago (2016-07-01 21:45:49 UTC) #2
estark
https://codereview.chromium.org/2120683002/diff/1/components/certificate_reporting/DEPS File components/certificate_reporting/DEPS (right): https://codereview.chromium.org/2120683002/diff/1/components/certificate_reporting/DEPS#newcode2 components/certificate_reporting/DEPS:2: "+content/public/test", I'm not 100% sure if this is allowed? ...
4 years, 5 months ago (2016-07-01 21:46:47 UTC) #3
felt
https://codereview.chromium.org/2120683002/diff/1/components/certificate_reporting/DEPS File components/certificate_reporting/DEPS (right): https://codereview.chromium.org/2120683002/diff/1/components/certificate_reporting/DEPS#newcode2 components/certificate_reporting/DEPS:2: "+content/public/test", On 2016/07/01 21:46:47, estark wrote: > I'm not ...
4 years, 5 months ago (2016-07-01 22:03:13 UTC) #4
felt
https://codereview.chromium.org/2120683002/diff/1/chrome/browser/ssl/chrome_expect_ct_reporter.cc File chrome/browser/ssl/chrome_expect_ct_reporter.cc (right): https://codereview.chromium.org/2120683002/diff/1/chrome/browser/ssl/chrome_expect_ct_reporter.cc#newcode110 chrome/browser/ssl/chrome_expect_ct_reporter.cc:110: UMA_HISTOGRAM_SPARSE_SLOWLY("SSL.ExpectCTReportFailure", -net_error); Will this change the histogram? Do you ...
4 years, 5 months ago (2016-07-01 22:05:58 UTC) #5
estark
https://codereview.chromium.org/2120683002/diff/1/chrome/browser/ssl/chrome_expect_ct_reporter.cc File chrome/browser/ssl/chrome_expect_ct_reporter.cc (right): https://codereview.chromium.org/2120683002/diff/1/chrome/browser/ssl/chrome_expect_ct_reporter.cc#newcode110 chrome/browser/ssl/chrome_expect_ct_reporter.cc:110: UMA_HISTOGRAM_SPARSE_SLOWLY("SSL.ExpectCTReportFailure", -net_error); On 2016/07/01 22:05:58, felt wrote: > Will ...
4 years, 5 months ago (2016-07-01 22:08:53 UTC) #6
felt
https://codereview.chromium.org/2120683002/diff/1/chrome/browser/ssl/chrome_expect_ct_reporter.cc File chrome/browser/ssl/chrome_expect_ct_reporter.cc (right): https://codereview.chromium.org/2120683002/diff/1/chrome/browser/ssl/chrome_expect_ct_reporter.cc#newcode110 chrome/browser/ssl/chrome_expect_ct_reporter.cc:110: UMA_HISTOGRAM_SPARSE_SLOWLY("SSL.ExpectCTReportFailure", -net_error); On 2016/07/01 22:08:53, estark wrote: > On ...
4 years, 5 months ago (2016-07-01 22:13:48 UTC) #7
estark
On 2016/07/01 22:13:48, felt wrote: > https://codereview.chromium.org/2120683002/diff/1/chrome/browser/ssl/chrome_expect_ct_reporter.cc > File chrome/browser/ssl/chrome_expect_ct_reporter.cc (right): > > https://codereview.chromium.org/2120683002/diff/1/chrome/browser/ssl/chrome_expect_ct_reporter.cc#newcode110 > ...
4 years, 5 months ago (2016-07-01 22:18:38 UTC) #8
eroman
These histograms (with negative errors) are in M52 right? I definitely think you want to ...
4 years, 5 months ago (2016-07-01 22:28:25 UTC) #9
estark
On 2016/07/01 22:28:25, eroman wrote: > These histograms (with negative errors) are in M52 right? ...
4 years, 5 months ago (2016-07-01 22:44:03 UTC) #10
eroman
The advantage is having cleaner data. When you look at a timeline view of these ...
4 years, 5 months ago (2016-07-01 22:56:29 UTC) #11
eroman
//net LGTM, modulo the outstanding question about naming.
4 years, 5 months ago (2016-07-01 23:00:40 UTC) #12
estark
On 2016/07/01 22:56:29, eroman wrote: > The advantage is having cleaner data. > > When ...
4 years, 5 months ago (2016-07-01 23:24:53 UTC) #13
Mark P
I share eroman@'s concerns (details below). --mark https://codereview.chromium.org/2120683002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2120683002/diff/60001/tools/metrics/histograms/histograms.xml#newcode29146 tools/metrics/histograms/histograms.xml:29146: + and ...
4 years, 5 months ago (2016-07-08 17:50:58 UTC) #14
estark
Ok, fair enough. Though, Mark, you suggested renaming the old histograms -- is there a ...
4 years, 5 months ago (2016-07-12 18:30:12 UTC) #15
Mark P
histograms lgtm On 2016/07/12 18:30:12, estark wrote: > Ok, fair enough. Though, Mark, you suggested ...
4 years, 5 months ago (2016-07-12 18:33:33 UTC) #16
estark
felt: lgty? Adding a //content/test:test_support dependency in the component's unit tests was breaking the ios/chrome/browser ...
4 years, 5 months ago (2016-07-12 21:53:33 UTC) #17
felt
On 2016/07/12 21:53:33, estark wrote: > felt: lgty? > > Adding a //content/test:test_support dependency in ...
4 years, 5 months ago (2016-07-12 21:54:49 UTC) #18
felt
lgtm
4 years, 5 months ago (2016-07-12 21:55:47 UTC) #19
estark
sdefresne, can you please review components/BUILD.gn and ios/chrome/browser/DEPS?
4 years, 5 months ago (2016-07-12 21:57:21 UTC) #21
estark
friendly ping to sdefresne
4 years, 5 months ago (2016-07-15 20:16:03 UTC) #22
sdefresne
components/BUILD.gn and ios/chrome/browser/DEPS lgtm
4 years, 5 months ago (2016-07-18 13:26:40 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2120683002/140001
4 years, 5 months ago (2016-07-18 15:56:57 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/219706)
4 years, 5 months ago (2016-07-18 16:07:40 UTC) #28
estark
phajdan.jr could you please approve for adding content/public/test to components/certificate_reporting/DEPS?
4 years, 5 months ago (2016-07-18 16:11:02 UTC) #30
Paweł Hajdan Jr.
LGTM
4 years, 5 months ago (2016-07-20 15:23:06 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2120683002/140001
4 years, 5 months ago (2016-07-20 16:33:13 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-07-20 17:43:47 UTC) #34
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-20 17:44:16 UTC) #35
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/a79bbb7b735bfbc7b84518bdd6f166a2fb39f7c1 Cr-Commit-Position: refs/heads/master@{#406604}
4 years, 5 months ago (2016-07-20 17:47:03 UTC) #37
jam
On 2016/07/18 16:11:02, estark wrote: > phajdan.jr could you please approve for adding content/public/test to ...
4 years, 5 months ago (2016-07-21 00:47:01 UTC) #38
estark
4 years, 5 months ago (2016-07-21 01:16:25 UTC) #39
Message was sent while issue was closed.
On 2016/07/21 00:47:01, jam wrote:
> On 2016/07/18 16:11:02, estark wrote:
> > phajdan.jr could you please approve for adding content/public/test to
> > components/certificate_reporting/DEPS?
> 
> drive-by: in general if a component or directory doesn't use content, it's
best
> to avoid depending on it for tests. In this case, you can use a
> base::MessageLoopForIO instead of the browser test bundle.

Thanks! I'll submit a fix.

Powered by Google App Engine
This is Rietveld 408576698