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

Issue 2543523002: Implement main CertificateReportingService code and add unit tests. (Closed)

Created:
4 years ago by meacer
Modified:
4 years ago
Reviewers:
Jialiu Lin, estark
CC:
chromium-reviews, grt+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement main CertificateReportingService code and add unit tests. This CL adds the actual CertificateReportingService code that's going to be used to send reports. The service is still not wired to any other service, so is off by default. BUG=554323 Committed: https://crrev.com/dd133eb62c32783f97cfd7b2b6f83af768461268 Cr-Commit-Position: refs/heads/master@{#438017}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Sacrifice signed integers for Trygods #

Patch Set 3 : jialiul comments #

Total comments: 16

Patch Set 4 : Remove EventObserver, check URL request destroyed events #

Patch Set 5 : Cleanup #

Total comments: 46

Patch Set 6 : estark comments #

Patch Set 7 : Fix unit tests #

Total comments: 10

Patch Set 8 : estark comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1277 lines, -20 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/certificate_reporting_service.h View 1 2 3 4 5 6 7 4 chunks +112 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/certificate_reporting_service.cc View 1 2 3 4 5 6 7 5 chunks +178 lines, -10 lines 0 comments Download
M chrome/browser/safe_browsing/certificate_reporting_service_factory.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
A chrome/browser/safe_browsing/certificate_reporting_service_test_utils.h View 1 2 3 4 5 6 7 1 chunk +199 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/certificate_reporting_service_test_utils.cc View 1 2 3 4 5 6 7 1 chunk +386 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc View 1 2 3 4 5 6 7 6 chunks +398 lines, -4 lines 0 comments Download

Messages

Total messages: 48 (28 generated)
meacer
jialiul, estark: PTAL? Thanks.
4 years ago (2016-11-30 02:10:16 UTC) #4
meacer
(In case you haven't started reviewing, I just uploaded patchset #2 for signed integer conversion, ...
4 years ago (2016-11-30 20:19:49 UTC) #9
Jialiu Lin
lgtm in general with a couple of nits (feel free to ignore). Though several bots ...
4 years ago (2016-11-30 22:18:07 UTC) #12
meacer
Thanks! The bots are unhappy because of a null deref. I'm fixing it in https://codereview.chromium.org/2540853005/ ...
4 years ago (2016-11-30 23:39:40 UTC) #13
Jialiu Lin
lgtm defer to estark@ for additional comments. https://codereview.chromium.org/2543523002/diff/1/chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc File chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc (right): https://codereview.chromium.org/2543523002/diff/1/chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc#newcode320 chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc:320: EXPECT_EQ(0, report_observer->num_resets()); ...
4 years ago (2016-11-30 23:54:58 UTC) #14
estark
(Couldn't digest the whole thing at end of day with tired brain, so I mostly ...
4 years ago (2016-12-01 01:46:54 UTC) #15
meacer
On 2016/12/01 01:46:54, estark wrote: > (Couldn't digest the whole thing at end of day ...
4 years ago (2016-12-01 02:08:23 UTC) #16
meacer
On 2016/12/01 02:08:23, Mustafa Emre Acer wrote: > On 2016/12/01 01:46:54, estark wrote: > > ...
4 years ago (2016-12-01 19:46:00 UTC) #17
meacer
estark: I removed event observed. Can you PTAL and see if this approach works? (I'll ...
4 years ago (2016-12-06 02:22:34 UTC) #20
estark
Yaaaaaaaay no more EventObserver!!! Thanks for doing this, the unit tests are really easy to ...
4 years ago (2016-12-07 00:42:56 UTC) #21
meacer
Resolved all comments and had to do a rebase. jialiul, estark: PTAL both? https://codereview.chromium.org/2543523002/diff/40001/chrome/browser/safe_browsing/certificate_reporting_service.h File ...
4 years ago (2016-12-07 21:37:34 UTC) #24
estark
lgtm with a few more nits (sorry I didn't notice them earlier) https://codereview.chromium.org/2543523002/diff/120001/chrome/browser/safe_browsing/certificate_reporting_service.h File chrome/browser/safe_browsing/certificate_reporting_service.h ...
4 years ago (2016-12-09 00:49:16 UTC) #33
meacer
Thanks! Jialiu: Still lgty? https://codereview.chromium.org/2543523002/diff/120001/chrome/browser/safe_browsing/certificate_reporting_service.h File chrome/browser/safe_browsing/certificate_reporting_service.h (right): https://codereview.chromium.org/2543523002/diff/120001/chrome/browser/safe_browsing/certificate_reporting_service.h#newcode28 chrome/browser/safe_browsing/certificate_reporting_service.h:28: class URLRequestContextGetter; On 2016/12/09 00:49:16, ...
4 years ago (2016-12-09 01:07:04 UTC) #34
Jialiu Lin
LGTM. And sorry for my late reply.
4 years ago (2016-12-12 03:45:47 UTC) #35
meacer
No worries, thanks!
4 years ago (2016-12-12 18:32:37 UTC) #36
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/2543523002/140001
4 years ago (2016-12-12 18:47:23 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/278003)
4 years ago (2016-12-12 23:58:54 UTC) #41
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/2543523002/140001
4 years ago (2016-12-13 00:19:35 UTC) #43
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years ago (2016-12-13 03:12:31 UTC) #46
commit-bot: I haz the power
4 years ago (2016-12-13 03:16:11 UTC) #48
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/dd133eb62c32783f97cfd7b2b6f83af768461268
Cr-Commit-Position: refs/heads/master@{#438017}

Powered by Google App Engine
This is Rietveld 408576698