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

Issue 15881012: Implement safebrowsing download feedback service, enabled for dev & canary only. (Closed)

Created:
7 years, 6 months ago by mattm
Modified:
7 years, 6 months ago
CC:
chromium-reviews, asanka, jar (doing other things), benjhayden+dwatch_chromium.org, tfarina, asvitkine+watch_chromium.org, Ilya Sherman
Visibility:
Public.

Description

Implement safebrowsing download feedback service, enabled for dev & canary only. For eligible files, the "Discard" button in the download shelf becomes "Report & Discard". (Plain "Discard" is still available in the popup menu.) BUG=169557 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206571

Patch Set 1 #

Total comments: 5

Patch Set 2 : rebase #

Patch Set 3 : Use TestBrowserThreadBundle, delete the file if DownloadFeedbackService is destroyed when acquire c… #

Patch Set 4 : Only do one upload at a time #

Patch Set 5 : fix win build #

Total comments: 5

Patch Set 6 : add dcheck #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1402 lines, -8 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/download/download_item_model.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/download/download_item_model.cc View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/download_feedback.h View 1 chunk +79 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/download_feedback.cc View 1 chunk +226 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/download_feedback_service.h View 1 2 3 1 chunk +96 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/download_feedback_service.cc View 1 2 3 4 5 1 chunk +216 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/download_feedback_service_unittest.cc View 1 2 3 4 1 chunk +374 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/download_feedback_unittest.cc View 1 2 1 chunk +242 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.h View 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 6 6 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 1 7 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/two_phase_uploader.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/two_phase_uploader.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_item_view.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 2 3 4 5 6 7 4 chunks +30 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 3 chunks +65 lines, -0 lines 1 comment Download

Messages

Total messages: 13 (0 generated)
mattm
noelutz: safe_browsing/ asanka: chrome/browser/download/ and also download_feedback_service.cc if you want to look at the downloads ...
7 years, 6 months ago (2013-06-01 02:17:21 UTC) #1
sky
LGTM
7 years, 6 months ago (2013-06-03 15:43:47 UTC) #2
asanka
chrome/browser/download LGTM How would a user find out what "Report & Discard" does? https://codereview.chromium.org/15881012/diff/1/chrome/app/generated_resources.grd File ...
7 years, 6 months ago (2013-06-03 16:18:31 UTC) #3
mattm
On 2013/06/03 16:18:31, asanka wrote: > How would a user find out what "Report & ...
7 years, 6 months ago (2013-06-07 03:09:02 UTC) #4
asanka
LGTM https://codereview.chromium.org/15881012/diff/1/chrome/browser/safe_browsing/download_feedback_service.cc File chrome/browser/safe_browsing/download_feedback_service.cc (right): https://codereview.chromium.org/15881012/diff/1/chrome/browser/safe_browsing/download_feedback_service.cc#newcode165 chrome/browser/safe_browsing/download_feedback_service.cc:165: weak_ptr_factory_.GetWeakPtr(), On 2013/06/07 03:09:02, mattm wrote: > On ...
7 years, 6 months ago (2013-06-07 15:39:58 UTC) #5
noelutz
lgtm Really really nice CL! noé. https://codereview.chromium.org/15881012/diff/43001/chrome/browser/safe_browsing/download_feedback_service.cc File chrome/browser/safe_browsing/download_feedback_service.cc (right): https://codereview.chromium.org/15881012/diff/43001/chrome/browser/safe_browsing/download_feedback_service.cc#newcode125 chrome/browser/safe_browsing/download_feedback_service.cc:125: return !!DownloadFeedbackPings::FromDownload(download); Can ...
7 years, 6 months ago (2013-06-12 02:49:47 UTC) #6
mattm
https://codereview.chromium.org/15881012/diff/43001/chrome/browser/safe_browsing/download_feedback_service.cc File chrome/browser/safe_browsing/download_feedback_service.cc (right): https://codereview.chromium.org/15881012/diff/43001/chrome/browser/safe_browsing/download_feedback_service.cc#newcode125 chrome/browser/safe_browsing/download_feedback_service.cc:125: return !!DownloadFeedbackPings::FromDownload(download); On 2013/06/12 02:49:47, noelutz wrote: > Can ...
7 years, 6 months ago (2013-06-12 04:02:01 UTC) #7
mattm
+jar for histograms.xml note: I had to copy the DownloadItem.DangerType enum from the src-internal histograms.xml ...
7 years, 6 months ago (2013-06-12 04:09:09 UTC) #8
mattm
+Ilya for histograms review. Rebased now that downloads histograms are moved.
7 years, 6 months ago (2013-06-14 23:05:24 UTC) #9
Ilya Sherman
LGTM with a question: https://codereview.chromium.org/15881012/diff/78001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/15881012/diff/78001/tools/metrics/histograms/histograms.xml#newcode10619 tools/metrics/histograms/histograms.xml:10619: <histogram name="SBDownloadFeedback.SizeFailure" units="bytes"> Why are ...
7 years, 6 months ago (2013-06-14 23:26:28 UTC) #10
mattm
On 2013/06/14 23:26:28, Ilya Sherman wrote: > LGTM with a question: > > https://codereview.chromium.org/15881012/diff/78001/tools/metrics/histograms/histograms.xml > ...
7 years, 6 months ago (2013-06-14 23:37:25 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/15881012/78001
7 years, 6 months ago (2013-06-15 00:55:41 UTC) #12
commit-bot: I haz the power
7 years, 6 months ago (2013-06-15 10:51:36 UTC) #13
Message was sent while issue was closed.
Change committed as 206571

Powered by Google App Engine
This is Rietveld 408576698