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

Issue 8586011: - Flip the flag for improved SafeBrowsing downoad protection. (Closed)

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

Description

- Flip the flag for improved SafeBrowsing downoad protection. - Send the binary sha256 hash. - Cancel requests that timed out. BUG=102540 TEST=Run DownloadProtectionServiceTest. Also, if you have SafeBrowsing enabled you should see a server request for every binary download that doesn't match our whitelist. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110649

Patch Set 1 #

Patch Set 2 : revert changes to the download delegate #

Patch Set 3 : Remove switch from the header file too. #

Total comments: 1

Patch Set 4 : Address Brian's comment. #

Total comments: 2

Patch Set 5 : Fix request ownership. #

Patch Set 6 : fix comment and remove error message. #

Patch Set 7 : Make sure cancel is called after we start the request. #

Patch Set 8 : More ownership 'issues' #

Patch Set 9 : s #

Patch Set 10 : Always call FinishRequest in Cancel() #

Total comments: 5

Patch Set 11 : Address Brian's comments #

Patch Set 12 : Address Matt's comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -40 lines) Patch
M chrome/browser/safe_browsing/download_protection_service.h View 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +42 lines, -12 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 1 2 3 4 21 chunks +53 lines, -21 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
noelutz
9 years, 1 month ago (2011-11-17 01:11:28 UTC) #1
Brian Ryner
http://codereview.chromium.org/8586011/diff/4001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8586011/diff/4001/chrome/browser/safe_browsing/download_protection_service.cc#newcode583 chrome/browser/safe_browsing/download_protection_service.cc:583: return; I don't think this will remove the request ...
9 years, 1 month ago (2011-11-17 02:07:03 UTC) #2
noelutz
Please take another look. noe.
9 years, 1 month ago (2011-11-17 02:33:26 UTC) #3
Brian Ryner
lgtm
9 years, 1 month ago (2011-11-17 04:34:27 UTC) #4
mattm
Noticed some leaked mock messages at the end of the unit_tests logs: http://build.chromium.org/p/tryserver.chromium/builders/linux/builds/3292/steps/unit_tests/logs/stdio Are those ...
9 years, 1 month ago (2011-11-17 04:56:33 UTC) #5
noelutz
On 2011/11/17 04:56:33, mattm wrote: > Noticed some leaked mock messages at the end of ...
9 years, 1 month ago (2011-11-17 06:14:41 UTC) #6
noelutz
http://codereview.chromium.org/8586011/diff/4003/chrome/browser/safe_browsing/download_protection_service_unittest.cc File chrome/browser/safe_browsing/download_protection_service_unittest.cc (right): http://codereview.chromium.org/8586011/diff/4003/chrome/browser/safe_browsing/download_protection_service_unittest.cc#newcode659 chrome/browser/safe_browsing/download_protection_service_unittest.cc:659: download_service_->download_request_timeout_ms_ = 100; On 2011/11/17 04:56:33, mattm wrote: > ...
9 years, 1 month ago (2011-11-17 06:15:03 UTC) #7
noelutz
All the ownership issues should be fixed. Please take another look. Thanks, noé.
9 years, 1 month ago (2011-11-17 19:00:02 UTC) #8
Brian Ryner
lgtm Just a couple of things you can fix before you submit. http://codereview.chromium.org/8586011/diff/12/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc ...
9 years, 1 month ago (2011-11-17 20:25:30 UTC) #9
noelutz
http://codereview.chromium.org/8586011/diff/12/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8586011/diff/12/chrome/browser/safe_browsing/download_protection_service.cc#newcode409 chrome/browser/safe_browsing/download_protection_service.cc:409: // the UI thread that will call FinishRequest() and ...
9 years, 1 month ago (2011-11-17 21:28:40 UTC) #10
mattm
lgtm http://codereview.chromium.org/8586011/diff/12/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8586011/diff/12/chrome/browser/safe_browsing/download_protection_service.cc#newcode450 chrome/browser/safe_browsing/download_protection_service.cc:450: timeout_weakptr_factory_.InvalidateWeakPtrs(); the WeakPtrFactory destructor should do this already
9 years, 1 month ago (2011-11-17 21:43:34 UTC) #11
noelutz
thanks, noé. http://codereview.chromium.org/8586011/diff/12/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8586011/diff/12/chrome/browser/safe_browsing/download_protection_service.cc#newcode450 chrome/browser/safe_browsing/download_protection_service.cc:450: timeout_weakptr_factory_.InvalidateWeakPtrs(); On 2011/11/17 21:43:34, mattm wrote: > ...
9 years, 1 month ago (2011-11-17 21:46:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noelutz@google.com/8586011/6030
9 years, 1 month ago (2011-11-18 01:37:07 UTC) #13
commit-bot: I haz the power
9 years, 1 month ago (2011-11-18 04:06:40 UTC) #14
Change committed as 110649

Powered by Google App Engine
This is Rietveld 408576698