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

Issue 1655113002: Add a new ThreatSource type to indicate SBHit is from client side detection. (Closed)

Created:
4 years, 10 months ago by Jialiu Lin
Modified:
4 years, 10 months ago
CC:
chromium-reviews, grt+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a new ThreatSource type to indicate SBHit is from client side detection. This fixes the crashing caused by hitting NOTREACHED() line in SafeBrowsingPingManager::SafeBrowsingHitUrl(...) BUG=583388 Committed: https://crrev.com/b1b56bd1db49796614e716dfde0a4c1c5afaa95d Cr-Commit-Position: refs/heads/master@{#373285}

Patch Set 1 #

Total comments: 4

Patch Set 2 : unit_tests and histogram #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -4 lines) Patch
M chrome/browser/safe_browsing/client_side_detection_host.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host_unittest.cc View 1 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/ping_manager.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/safe_browsing_db/hit_report.h View 1 chunk +5 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
Jialiu Lin
Unfortunately, the release build crashes too (only tested on linux though) This CL should fix ...
4 years, 10 months ago (2016-02-02 03:18:34 UTC) #3
Nathan Parker
lgtm https://codereview.chromium.org/1655113002/diff/1/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): https://codereview.chromium.org/1655113002/diff/1/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode591 chrome/browser/safe_browsing/client_side_detection_host.cc:591: safe_browsing::ThreatSource::CLIENT_SIDE_DETECTION; Any tests that should set this as ...
4 years, 10 months ago (2016-02-02 18:56:34 UTC) #4
Nathan Parker
Oh, and you'll need to update histograms.xml, since this'll generate a new histogram.
4 years, 10 months ago (2016-02-02 18:57:02 UTC) #5
Jialiu Lin
histograms.xml updated. Thanks, nparker. https://codereview.chromium.org/1655113002/diff/1/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): https://codereview.chromium.org/1655113002/diff/1/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode591 chrome/browser/safe_browsing/client_side_detection_host.cc:591: safe_browsing::ThreatSource::CLIENT_SIDE_DETECTION; On 2016/02/02 18:56:33, nparker ...
4 years, 10 months ago (2016-02-02 21:47:35 UTC) #6
Jialiu Lin
Hi holte, Could you take a look at the change made to histograms.xml? Thanks,
4 years, 10 months ago (2016-02-02 21:48:25 UTC) #8
Steven Holte
lgtm
4 years, 10 months ago (2016-02-03 03:45:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1655113002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1655113002/20001
4 years, 10 months ago (2016-02-03 18:14:19 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-03 18:52:13 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 18:53:12 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b1b56bd1db49796614e716dfde0a4c1c5afaa95d
Cr-Commit-Position: refs/heads/master@{#373285}

Powered by Google App Engine
This is Rietveld 408576698