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

Issue 2578873003: Remove certificate reporting code from SafeBrowsing ping and ui managers (Closed)

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

Description

Remove certificate reporting code from SafeBrowsing ping and ui managers This CL removes remaining certificate reporting code from SafeBrowsingPingManager and SafeBrowsingUIManager. It also removes MockErrorReporter class which was passed to SafeBrowsingPingManager in tests, and uses MockSSLCertReporter directly to keep track of sent reports. This removes some coverage of reporting code which is now inside CertificateReportingService. However, CertificateReportingService is extensively tested in its own tests, so there shouldn't be any downside to the removal of MockErrorReporter in terms of code coverage. A better implementation of Captive portal and SSL UI browser tests should probably go through the whole reporting code without using any mock reporter, but that requires rewriting large portions of those browser tests and is best done in a separate CL. BUG=554323 Committed: https://crrev.com/f73eb0ecdbbfe0ff6388cdc4bff5fa8672a2583c Cr-Commit-Position: refs/heads/master@{#441009}

Patch Set 1 #

Patch Set 2 : Rebase onto 2503243003 #

Patch Set 3 : Diff with crrev.com/2503243003 #

Patch Set 4 : Rebase #

Total comments: 4

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -324 lines) Patch
M chrome/browser/safe_browsing/ping_manager.h View 3 chunks +0 lines, -16 lines 0 comments Download
M chrome/browser/safe_browsing/ping_manager.cc View 1 2 6 chunks +0 lines, -38 lines 0 comments Download
M chrome/browser/safe_browsing/ping_manager_unittest.cc View 3 chunks +0 lines, -57 lines 0 comments Download
M chrome/browser/safe_browsing/ui_manager.h View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/ui_manager.cc View 1 2 3 4 2 chunks +0 lines, -24 lines 0 comments Download
M chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc View 7 chunks +29 lines, -20 lines 0 comments Download
M chrome/browser/ssl/certificate_reporting_test_utils.h View 1 2 3 4 1 chunk +21 lines, -46 lines 0 comments Download
M chrome/browser/ssl/certificate_reporting_test_utils.cc View 3 chunks +37 lines, -94 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 11 chunks +24 lines, -20 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
meacer
jialiul, estark: Hopefully the final CL. Thanks!
4 years ago (2016-12-16 22:18:52 UTC) #9
Jialiu Lin
lgtm for c/b/safe_browsing :-)
4 years ago (2016-12-16 22:25:20 UTC) #11
meacer
Rebased.
4 years ago (2016-12-22 00:51:15 UTC) #12
estark
lgtm https://codereview.chromium.org/2578873003/diff/60001/chrome/browser/ssl/certificate_reporting_test_utils.h File chrome/browser/ssl/certificate_reporting_test_utils.h (right): https://codereview.chromium.org/2578873003/diff/60001/chrome/browser/ssl/certificate_reporting_test_utils.h#newcode28 chrome/browser/ssl/certificate_reporting_test_utils.h:28: // It outlives the SSLCertReporter when an interstitial ...
3 years, 11 months ago (2016-12-29 02:32:26 UTC) #13
meacer
https://codereview.chromium.org/2578873003/diff/60001/chrome/browser/ssl/certificate_reporting_test_utils.h File chrome/browser/ssl/certificate_reporting_test_utils.h (right): https://codereview.chromium.org/2578873003/diff/60001/chrome/browser/ssl/certificate_reporting_test_utils.h#newcode28 chrome/browser/ssl/certificate_reporting_test_utils.h:28: // It outlives the SSLCertReporter when an interstitial owning ...
3 years, 11 months ago (2016-12-29 03:08:15 UTC) #14
estark
https://codereview.chromium.org/2578873003/diff/60001/chrome/browser/ssl/certificate_reporting_test_utils.h File chrome/browser/ssl/certificate_reporting_test_utils.h (right): https://codereview.chromium.org/2578873003/diff/60001/chrome/browser/ssl/certificate_reporting_test_utils.h#newcode28 chrome/browser/ssl/certificate_reporting_test_utils.h:28: // It outlives the SSLCertReporter when an interstitial owning ...
3 years, 11 months ago (2016-12-29 16:00:49 UTC) #15
meacer
https://codereview.chromium.org/2578873003/diff/60001/chrome/browser/ssl/certificate_reporting_test_utils.h File chrome/browser/ssl/certificate_reporting_test_utils.h (right): https://codereview.chromium.org/2578873003/diff/60001/chrome/browser/ssl/certificate_reporting_test_utils.h#newcode28 chrome/browser/ssl/certificate_reporting_test_utils.h:28: // It outlives the SSLCertReporter when an interstitial owning ...
3 years, 11 months ago (2016-12-29 23:07:56 UTC) #16
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/2578873003/80001
3 years, 11 months ago (2016-12-29 23:08:16 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
3 years, 11 months ago (2016-12-30 00:05:05 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:53:56 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f73eb0ecdbbfe0ff6388cdc4bff5fa8672a2583c
Cr-Commit-Position: refs/heads/master@{#441009}

Powered by Google App Engine
This is Rietveld 408576698