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

Issue 565053002: [Downloads] Gracefully handle SafeBrowsing check failures. (Closed)

Created:
6 years, 3 months ago by asanka
Modified:
6 years, 3 months ago
Reviewers:
mattm
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, asanka
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Downloads] Gracefully handle SafeBrowsing check failures. If the SafeBrowsing service couldn't come up with a definite verdict for some reason (e.g. couldn't reach the backend or encountered some error) it would default to a verdict of SAFE. This in turn could cause a download that would've been considered dangerous due its file type to be considered safe. This change introduces an UNKNOWN verdict that the SafeBrowsing service can use to indicate that a verdict couldn't be determined. Downloads then uses that signal to revert to the old behavior of displaying a dangerous downloads warning based on the file type. BUG=269157 Committed: https://crrev.com/ae43e03978b7aa5ce03f0262d3ab6c5d2b0153c1 Cr-Commit-Position: refs/heads/master@{#295167}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -134 lines) Patch
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 8 chunks +39 lines, -28 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 chunks +147 lines, -6 lines 0 comments Download
M chrome/browser/download/download_item_model.h View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/download/download_item_model.cc View 5 chunks +28 lines, -30 lines 0 comments Download
M chrome/browser/download/download_target_determiner.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/download/download_target_determiner.cc View 1 6 chunks +16 lines, -9 lines 0 comments Download
M chrome/browser/download/download_target_info.h View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 10 chunks +52 lines, -41 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 20 chunks +54 lines, -19 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
asanka
PTAL.
6 years, 3 months ago (2014-09-12 01:19:31 UTC) #2
mattm
Thanks for doing these changes! https://codereview.chromium.org/565053002/diff/1/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): https://codereview.chromium.org/565053002/diff/1/chrome/browser/download/chrome_download_manager_delegate.cc#newcode311 chrome/browser/download/chrome_download_manager_delegate.cc:311: if (service) { I ...
6 years, 3 months ago (2014-09-12 02:52:40 UTC) #3
mattm
Oh, and even if that does sound true, we're still better with this CL than ...
6 years, 3 months ago (2014-09-12 03:05:35 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/565053002/100001
6 years, 3 months ago (2014-09-16 21:31:24 UTC) #6
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 8e8723954104c5a58689462daaaf94cb04eb103d
6 years, 3 months ago (2014-09-16 22:56:01 UTC) #7
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 22:57:00 UTC) #8
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ae43e03978b7aa5ce03f0262d3ab6c5d2b0153c1
Cr-Commit-Position: refs/heads/master@{#295167}

Powered by Google App Engine
This is Rietveld 408576698