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

Issue 8345033: Collect some histograms about signed binary downloads. (Closed)

Created:
9 years, 2 months ago by Brian Ryner
Modified:
9 years, 1 month ago
CC:
chromium-reviews, rdsmith+dwatch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Collect some histograms about signed binary downloads. This hooks up the DownloadProtectionService to run after a download finishes. For now, this does not send a download pingback since the flag defaults to off. TEST=DownloadProtectionServiceTest BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107528 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107674

Patch Set 1 #

Total comments: 23

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 5

Patch Set 4 : '' #

Total comments: 11

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 8

Patch Set 7 : '' #

Patch Set 8 : fix chromeos and valgrind #

Unified diffs Side-by-side diffs Delta from patch set Stats (+581 lines, -236 lines) Patch
M chrome/browser/download/chrome_download_manager_delegate.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 7 2 chunks +26 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host_unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.h View 1 2 3 4 5 6 7 6 chunks +35 lines, -49 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 6 7 3 chunks +276 lines, -136 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 1 2 3 4 5 6 7 11 chunks +102 lines, -28 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 2 3 4 5 6 7 5 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 5 6 7 4 chunks +9 lines, -18 lines 0 comments Download
A chrome/browser/safe_browsing/signature_util.h View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/signature_util_posix.cc View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/signature_util_win.cc View 1 2 3 4 5 6 7 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/signature_util_win_unittest.cc View 1 2 3 4 5 6 7 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (0 generated)
Brian Ryner
Note: I think the Windows trybot run failed because it didn't know how to patch ...
9 years, 2 months ago (2011-10-19 03:47:42 UTC) #1
mattm
On 2011/10/19 03:47:42, Brian Ryner wrote: > Note: I think the Windows trybot run failed ...
9 years, 2 months ago (2011-10-19 04:08:23 UTC) #2
Brian Ryner
Would you recommend that approach here, or do you think it's ok given that the ...
9 years, 2 months ago (2011-10-19 04:19:04 UTC) #3
mattm
On 2011/10/19 04:19:04, Brian Ryner wrote: > Would you recommend that approach here, or do ...
9 years, 2 months ago (2011-10-19 04:25:13 UTC) #4
noelutz
LG. I just have some minor comments. Personally I would like to get this CL ...
9 years, 2 months ago (2011-10-19 16:12:49 UTC) #5
Brian Ryner
I'll just split out the test data into a separate CL -- it won't take ...
9 years, 2 months ago (2011-10-19 17:41:39 UTC) #6
Brian Ryner
http://codereview.chromium.org/8345033/diff/1/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/8345033/diff/1/chrome/browser/download/chrome_download_manager_delegate.cc#newcode229 chrome/browser/download/chrome_download_manager_delegate.cc:229: // Begin the safe browsing download protection check. On ...
9 years, 2 months ago (2011-10-19 18:06:58 UTC) #7
noelutz
I don't see your previous changes. noé. http://codereview.chromium.org/8345033/diff/1/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8345033/diff/1/chrome/browser/safe_browsing/download_protection_service.cc#newcode178 chrome/browser/safe_browsing/download_protection_service.cc:178: RecordStats(REASON_SB_DISABLED); On ...
9 years, 2 months ago (2011-10-19 18:41:14 UTC) #8
mattm
http://codereview.chromium.org/8345033/diff/1/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8345033/diff/1/chrome/browser/safe_browsing/download_protection_service.cc#newcode27 chrome/browser/safe_browsing/download_protection_service.cc:27: bool IsBinaryFile(const FilePath& file) { "Binary" doesn't seem like ...
9 years, 2 months ago (2011-10-19 18:54:12 UTC) #9
Brian Ryner
http://codereview.chromium.org/8345033/diff/1/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8345033/diff/1/chrome/browser/safe_browsing/download_protection_service.cc#newcode27 chrome/browser/safe_browsing/download_protection_service.cc:27: bool IsBinaryFile(const FilePath& file) { On 2011/10/19 18:54:12, mattm ...
9 years, 2 months ago (2011-10-19 19:20:11 UTC) #10
mattm
http://codereview.chromium.org/8345033/diff/1/chrome/browser/safe_browsing/safe_browsing_service.h File chrome/browser/safe_browsing/safe_browsing_service.h (right): http://codereview.chromium.org/8345033/diff/1/chrome/browser/safe_browsing/safe_browsing_service.h#newcode54 chrome/browser/safe_browsing/safe_browsing_service.h:54: public base::SupportsWeakPtr<SafeBrowsingService>, Still thinking this through, but I think ...
9 years, 2 months ago (2011-10-19 20:04:10 UTC) #11
mattm
http://codereview.chromium.org/8345033/diff/1/chrome/browser/safe_browsing/safe_browsing_service.h File chrome/browser/safe_browsing/safe_browsing_service.h (right): http://codereview.chromium.org/8345033/diff/1/chrome/browser/safe_browsing/safe_browsing_service.h#newcode54 chrome/browser/safe_browsing/safe_browsing_service.h:54: public base::SupportsWeakPtr<SafeBrowsingService>, Oh, the one thing I forgot to ...
9 years, 2 months ago (2011-10-19 20:06:07 UTC) #12
Brian Ryner
How would this work when we post a task for the DPService to do some ...
9 years, 2 months ago (2011-10-19 20:53:52 UTC) #13
mattm
Hi Will, I'm sure you're dying to get more refcounting / weakptr type questions :) ...
9 years, 2 months ago (2011-10-19 22:44:37 UTC) #14
Brian Ryner
Going on the theory that using weakptr this way is unsafe (as the comments would ...
9 years, 2 months ago (2011-10-20 05:59:12 UTC) #15
willchan no longer on Chromium
From my brief glance, I don't think refcounting or WeakPtr are necessary. It seems like ...
9 years, 2 months ago (2011-10-20 14:35:47 UTC) #16
Brian Ryner
Hi Wlll, I wanted to clarify the threading a bit here since I think it ...
9 years, 2 months ago (2011-10-20 17:23:25 UTC) #17
willchan no longer on Chromium
On Thu, Oct 20, 2011 at 10:23 AM, <bryner@chromium.org> wrote: > Hi Wlll, > > ...
9 years, 2 months ago (2011-10-21 00:36:23 UTC) #18
Brian Ryner
So since the SBService is destroyed on the UI thread, we'd know that no other ...
9 years, 2 months ago (2011-10-21 00:58:08 UTC) #19
willchan no longer on Chromium
On Thu, Oct 20, 2011 at 5:58 PM, Brian Ryner <bryner@chromium.org> wrote: > So since ...
9 years, 2 months ago (2011-10-21 01:08:51 UTC) #20
Brian Ryner
Great point. Will give this a shot. On Thu, Oct 20, 2011 at 6:08 PM, ...
9 years, 2 months ago (2011-10-21 01:15:16 UTC) #21
Brian Ryner
Ok, updated based on all of the above comments. Please take another look.
9 years, 2 months ago (2011-10-22 00:30:43 UTC) #22
noelutz
http://codereview.chromium.org/8345033/diff/24002/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8345033/diff/24002/chrome/browser/safe_browsing/download_protection_service.cc#newcode59 chrome/browser/safe_browsing/download_protection_service.cc:59: base::Unretained(this), enabled)); I just want to make sure I ...
9 years, 2 months ago (2011-10-22 00:41:46 UTC) #23
Randy Smith (Not in Mondays)
http://codereview.chromium.org/8345033/diff/24002/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/8345033/diff/24002/chrome/browser/download/chrome_download_manager_delegate.cc#newcode228 chrome/browser/download/chrome_download_manager_delegate.cc:228: Can we localize the safebrowsing code in this file ...
9 years, 2 months ago (2011-10-22 17:08:07 UTC) #24
Brian Ryner
rdsmith: So basically that would mean having the DownloadProtectionService API deal with DownloadItem directly? I ...
9 years, 2 months ago (2011-10-22 19:47:31 UTC) #25
noelutz
On Sat, Oct 22, 2011 at 12:47 PM, <bryner@chromium.org> wrote: > rdsmith: So basically that ...
9 years, 2 months ago (2011-10-24 17:40:25 UTC) #26
Randy Smith (Not in Mondays)
On 2011/10/22 19:47:31, Brian Ryner wrote: > rdsmith: So basically that would mean having the ...
9 years, 2 months ago (2011-10-24 18:12:24 UTC) #27
Randy Smith (Not in Mondays)
On 2011/10/24 17:40:25, noelutz wrote: > Randy and I figured that eventually there should be ...
9 years, 2 months ago (2011-10-24 18:15:11 UTC) #28
Brian Ryner
On 2011/10/24 18:12:24, rdsmith wrote: > On 2011/10/22 19:47:31, Brian Ryner wrote: > > rdsmith: ...
9 years, 2 months ago (2011-10-24 21:50:19 UTC) #29
Randy Smith (Not in Mondays)
On 2011/10/24 21:50:19, Brian Ryner wrote: > On 2011/10/24 18:12:24, rdsmith wrote: > > On ...
9 years, 2 months ago (2011-10-25 02:28:37 UTC) #30
Brian Ryner
Ok, please take another look. I think I've addressed all of the points raised about ...
9 years, 2 months ago (2011-10-25 20:19:53 UTC) #31
noelutz
Nicely done. Just a few minor comments. Thanks, noe. http://codereview.chromium.org/8345033/diff/39002/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8345033/diff/39002/chrome/browser/safe_browsing/download_protection_service.cc#newcode238 chrome/browser/safe_browsing/download_protection_service.cc:238: ...
9 years, 2 months ago (2011-10-25 21:43:50 UTC) #32
Randy Smith (Not in Mondays)
On 2011/10/25 20:19:53, Brian Ryner wrote: > Ok, please take another look. I think I've ...
9 years, 2 months ago (2011-10-25 21:55:57 UTC) #33
Brian Ryner
http://codereview.chromium.org/8345033/diff/39002/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8345033/diff/39002/chrome/browser/safe_browsing/download_protection_service.cc#newcode238 chrome/browser/safe_browsing/download_protection_service.cc:238: fetcher_->set_request_context(service_->request_context_getter_.get()); On 2011/10/25 21:43:50, noelutz wrote: > Check if ...
9 years, 2 months ago (2011-10-25 22:03:06 UTC) #34
Brian Ryner
Maybe I misunderstood, I thought you had said (in comment 28) you were ok with ...
9 years, 2 months ago (2011-10-25 22:04:28 UTC) #35
Randy Smith (Not in Mondays)
On 2011/10/25 22:04:28, Brian Ryner wrote: > Maybe I misunderstood, I thought you had said ...
9 years, 2 months ago (2011-10-25 22:05:50 UTC) #36
noelutz
http://codereview.chromium.org/8345033/diff/39002/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8345033/diff/39002/chrome/browser/safe_browsing/download_protection_service.cc#newcode253 chrome/browser/safe_browsing/download_protection_service.cc:253: service_->RequestFinished(this); On 2011/10/25 22:03:07, Brian Ryner wrote: > On ...
9 years, 2 months ago (2011-10-25 22:13:42 UTC) #37
Brian Ryner
This patch addresses Noe's comments about DPS destruction, please take another look.
9 years, 2 months ago (2011-10-25 22:50:39 UTC) #38
noelutz
lgtm but first address Randy's comment? Thanks, noe.
9 years, 2 months ago (2011-10-25 22:59:08 UTC) #39
Brian Ryner
Moved the check to ShouldCompleteDownload, and synced to the URLFetcher changes on trunk. Note that ...
9 years, 2 months ago (2011-10-26 01:16:25 UTC) #40
noelutz
9 years, 2 months ago (2011-10-26 02:06:05 UTC) #41
noelutz
lgtm
9 years, 2 months ago (2011-10-26 02:06:08 UTC) #42
Randy Smith (Not in Mondays)
On 2011/10/25 22:13:42, noelutz wrote: > http://codereview.chromium.org/8345033/diff/39002/chrome/browser/safe_browsing/download_protection_service.cc > File chrome/browser/safe_browsing/download_protection_service.cc (right): > > http://codereview.chromium.org/8345033/diff/39002/chrome/browser/safe_browsing/download_protection_service.cc#newcode253 > ...
9 years, 1 month ago (2011-10-26 16:55:48 UTC) #43
Randy Smith (Not in Mondays)
LGTM.
9 years, 1 month ago (2011-10-26 16:55:55 UTC) #44
Brian Ryner
Matt, did you want to take another look before I commit?
9 years, 1 month ago (2011-10-26 17:03:48 UTC) #45
mattm
Have to do an interview + meeting, so I didn't finish re-reviewing yet. If I ...
9 years, 1 month ago (2011-10-26 20:08:29 UTC) #46
Brian Ryner
This afternoon would be great. Thanks.
9 years, 1 month ago (2011-10-26 20:12:00 UTC) #47
mattm
http://codereview.chromium.org/8345033/diff/36006/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/8345033/diff/36006/chrome/browser/download/chrome_download_manager_delegate.cc#newcode164 chrome/browser/download/chrome_download_manager_delegate.cc:164: if (sb_service && sb_service->download_protection_service()) { I think we need ...
9 years, 1 month ago (2011-10-26 23:27:35 UTC) #48
Brian Ryner
Please take another look. http://codereview.chromium.org/8345033/diff/36006/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/8345033/diff/36006/chrome/browser/download/chrome_download_manager_delegate.cc#newcode164 chrome/browser/download/chrome_download_manager_delegate.cc:164: if (sb_service && sb_service->download_protection_service()) { ...
9 years, 1 month ago (2011-10-27 01:03:04 UTC) #49
mattm
LGTM
9 years, 1 month ago (2011-10-27 01:06:12 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryner@chromium.org/8345033/43001
9 years, 1 month ago (2011-10-27 02:44:55 UTC) #51
commit-bot: I haz the power
Change committed as 107528
9 years, 1 month ago (2011-10-27 04:18:11 UTC) #52
Timur Iskhodzhanov
You probably know this, but just FTR this patch has introduced a few leaks detected ...
9 years, 1 month ago (2011-10-27 09:33:00 UTC) #53
Brian Ryner
This last revision has two changes: - Fix safe_browsing_blocking_page_unittest.cc to release the SafeBrowsingService before the ...
9 years, 1 month ago (2011-10-28 00:05:38 UTC) #54
noelutz
lgtm
9 years, 1 month ago (2011-10-28 00:09:16 UTC) #55
mattm
lgtm
9 years, 1 month ago (2011-10-28 00:11:36 UTC) #56
Randy Smith (Not in Mondays)
lgtm (no changes in this patchset to chrome_download_manager_delegate).
9 years, 1 month ago (2011-10-28 00:18:18 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryner@chromium.org/8345033/48001
9 years, 1 month ago (2011-10-28 00:20:57 UTC) #58
commit-bot: I haz the power
9 years, 1 month ago (2011-10-28 01:32:36 UTC) #59
Change committed as 107674

Powered by Google App Engine
This is Rietveld 408576698