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

Issue 663023007: Include high-fidelity metadata about a download in incident reports. (Closed)

Created:
6 years, 2 months ago by grt (UTC plus 2)
Modified:
6 years, 1 month ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, asanka, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git/+/master
Project:
chromium
Visibility:
Public.

Description

Include high-fidelity metadata about a download in incident reports. This is accomplished by the introduction of the DownloadMetadataManager, which maintains state about the most recent binary download. BUG=389123, 386915, 389643 Committed: https://crrev.com/1f31ae2baee245dd2cdb456b685ce94a94bdc10e Cr-Commit-Position: refs/heads/master@{#302624}

Patch Set 1 #

Patch Set 2 : sync to r300417 #

Total comments: 45

Patch Set 3 : robert comments (and sync to r300494, oops) #

Total comments: 14

Patch Set 4 : skip on shutdown #

Total comments: 6

Patch Set 5 : i can spell #

Patch Set 6 : sync to r301101 #

Total comments: 12

Patch Set 7 : asvitkine and asanka comments #

Patch Set 8 : sync to commit position 302085 #

Patch Set 9 : mattm comments #

Patch Set 10 : check for presence of safe_browsing_service before using #

Total comments: 1

Patch Set 11 : sync to commit position 302604 #

Patch Set 12 : added DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1731 lines, -105 lines) Patch
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.h View 1 2 5 chunks +29 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 1 2 3 4 5 6 7 8 30 chunks +133 lines, -1 line 0 comments Download
A chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.h View 1 2 1 chunk +98 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc View 1 2 3 4 5 6 1 chunk +614 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/incident_reporting/download_metadata_manager_unittest.cc View 1 2 1 chunk +491 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.h View 1 2 3 4 5 7 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc View 1 2 7 chunks +34 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/last_download_finder.h View 1 2 3 4 5 6 7 8 7 chunks +39 lines, -8 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/last_download_finder.cc View 1 2 3 4 5 6 7 8 6 chunks +144 lines, -59 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc View 1 2 3 4 5 6 7 9 chunks +41 lines, -30 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/safe_browsing/csd.proto View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (10 generated)
grt (UTC plus 2)
robertshield: please review everything mattm: please review at least the safe_browsing bits outside of incident_reporting. ...
6 years, 2 months ago (2014-10-21 04:06:12 UTC) #2
robertshield
Preliminary comments, only part way through. https://codereview.chromium.org/663023007/diff/20001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/663023007/diff/20001/chrome/browser/safe_browsing/download_protection_service.cc#newcode789 chrome/browser/safe_browsing/download_protection_service.cc:789: // This is ...
6 years, 2 months ago (2014-10-21 13:15:39 UTC) #3
robertshield
Almost done a first pass, some more comments. https://codereview.chromium.org/663023007/diff/20001/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc File chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc (right): https://codereview.chromium.org/663023007/diff/20001/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc#newcode68 chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc:68: using ...
6 years, 2 months ago (2014-10-22 02:28:56 UTC) #4
grt (UTC plus 2)
Thanks for the comments. Please take another look. https://codereview.chromium.org/663023007/diff/20001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/663023007/diff/20001/chrome/browser/safe_browsing/download_protection_service.cc#newcode789 chrome/browser/safe_browsing/download_protection_service.cc:789: // ...
6 years, 2 months ago (2014-10-23 19:53:13 UTC) #5
robertshield
Ok, cool beans. Comments on comments here, will do another full pass tonight. https://codereview.chromium.org/663023007/diff/20001/chrome/browser/safe_browsing/download_protection_service.h File ...
6 years, 2 months ago (2014-10-23 20:30:27 UTC) #6
grt (UTC plus 2)
Thanks. https://codereview.chromium.org/663023007/diff/20001/chrome/browser/safe_browsing/download_protection_service.h File chrome/browser/safe_browsing/download_protection_service.h (right): https://codereview.chromium.org/663023007/diff/20001/chrome/browser/safe_browsing/download_protection_service.h#newcode66 chrome/browser/safe_browsing/download_protection_service.h:66: ClientDownloadRequestCallbackList; On 2014/10/23 20:30:27, robertshield wrote: > On ...
6 years, 2 months ago (2014-10-23 21:02:18 UTC) #7
robertshield
Heya, comments on comments on comments :-) Apologies if I sounded grumpy! Moar general reading ...
6 years, 2 months ago (2014-10-23 21:43:03 UTC) #8
grt (UTC plus 2)
https://codereview.chromium.org/663023007/diff/20001/chrome/browser/safe_browsing/download_protection_service.h File chrome/browser/safe_browsing/download_protection_service.h (right): https://codereview.chromium.org/663023007/diff/20001/chrome/browser/safe_browsing/download_protection_service.h#newcode66 chrome/browser/safe_browsing/download_protection_service.h:66: ClientDownloadRequestCallbackList; On 2014/10/23 21:43:03, robertshield wrote: > On 2014/10/23 ...
6 years, 2 months ago (2014-10-24 01:51:31 UTC) #9
mattm
https://codereview.chromium.org/663023007/diff/40001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/663023007/diff/40001/chrome/browser/safe_browsing/download_protection_service.cc#newcode788 chrome/browser/safe_browsing/download_protection_service.cc:788: reason == REASON_TRUSTED_EXECUTABLE)) { This seems error prone, I'm ...
6 years, 2 months ago (2014-10-24 02:11:10 UTC) #10
robertshield
LGTM, I defer the remaining safebrowsing review bits to Matt https://codereview.chromium.org/663023007/diff/20001/chrome/browser/safe_browsing/download_protection_service.h File chrome/browser/safe_browsing/download_protection_service.h (right): https://codereview.chromium.org/663023007/diff/20001/chrome/browser/safe_browsing/download_protection_service.h#newcode66 ...
6 years, 2 months ago (2014-10-24 03:05:46 UTC) #11
grt (UTC plus 2)
Thanks. ping mattm for safe_browsing OWNERS review +asvitkine for histograms.xml OWNERS review +rdsmith for chrome/browser/download ...
6 years, 2 months ago (2014-10-24 15:04:41 UTC) #14
Alexei Svitkine (slow)
LGTM % a couple of comments https://codereview.chromium.org/663023007/diff/120001/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc File chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc (right): https://codereview.chromium.org/663023007/diff/120001/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc#newcode156 chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc:156: safe_browsing::LastDownloadFinder::DownloadDetailsGetter Make the ...
6 years, 1 month ago (2014-10-27 17:09:07 UTC) #16
asanka
/download/ lgtm https://codereview.chromium.org/663023007/diff/120001/chrome/browser/download/download_service.cc File chrome/browser/download/download_service.cc (right): https://codereview.chromium.org/663023007/diff/120001/chrome/browser/download/download_service.cc#newcode70 chrome/browser/download/download_service.cc:70: g_browser_process->safe_browsing_service()->AddDownloadManager(manager); #if defined(FULL_SAFE_BROWSING) || defined(MOBILE_SAFE_BROWSING) https://codereview.chromium.org/663023007/diff/120001/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc File ...
6 years, 1 month ago (2014-10-28 20:55:21 UTC) #18
grt (UTC plus 2)
Thanks for the suggestions. All are done. mattm: ping https://codereview.chromium.org/663023007/diff/120001/chrome/browser/download/download_service.cc File chrome/browser/download/download_service.cc (right): https://codereview.chromium.org/663023007/diff/120001/chrome/browser/download/download_service.cc#newcode70 chrome/browser/download/download_service.cc:70: ...
6 years, 1 month ago (2014-10-30 15:11:41 UTC) #19
grt (UTC plus 2)
mattm comments addressed; PTAL. https://codereview.chromium.org/663023007/diff/40001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/663023007/diff/40001/chrome/browser/safe_browsing/download_protection_service.cc#newcode788 chrome/browser/safe_browsing/download_protection_service.cc:788: reason == REASON_TRUSTED_EXECUTABLE)) { On ...
6 years, 1 month ago (2014-10-30 19:07:35 UTC) #20
mattm
So I was going through this CL again and feeling sad about how complicated it ...
6 years, 1 month ago (2014-10-31 23:26:43 UTC) #21
grt (UTC plus 2)
On 2014/10/31 23:26:43, mattm wrote: > So I was going through this CL again and ...
6 years, 1 month ago (2014-11-01 00:54:26 UTC) #22
mattm
ok, SBS and DPS lgtm (with nit) https://codereview.chromium.org/663023007/diff/200001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/663023007/diff/200001/chrome/browser/safe_browsing/download_protection_service.cc#newcode983 chrome/browser/safe_browsing/download_protection_service.cc:983: const ClientDownloadRequestCallback& ...
6 years, 1 month ago (2014-11-04 11:39:04 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/663023007/240001
6 years, 1 month ago (2014-11-04 14:11:01 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/25037)
6 years, 1 month ago (2014-11-04 16:01:58 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/663023007/240001
6 years, 1 month ago (2014-11-04 17:36:39 UTC) #31
commit-bot: I haz the power
Committed patchset #12 (id:240001)
6 years, 1 month ago (2014-11-04 17:37:39 UTC) #32
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 17:38:14 UTC) #33
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/1f31ae2baee245dd2cdb456b685ce94a94bdc10e
Cr-Commit-Position: refs/heads/master@{#302624}

Powered by Google App Engine
This is Rietveld 408576698