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

Issue 19863005: Warn users about potentially unwanted downloads. (Closed)

Created:
7 years, 5 months ago by asanka
Modified:
7 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, jam, jar (doing other things), benjhayden+dwatch_chromium.org, tfarina, browser-components-watch_chromium.org, joi+watch-content_chromium.org, eroman, robertshield, arv+watch_chromium.org, asvitkine+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, Ilya Sherman, mmenke
Visibility:
Public.

Description

Warn users about potentially unwanted downloads. Exposes POTENTIALLY_UNWANTED ClientDownloadResponse verdict from the SafeBrowsing service to ChromeDownloadManagerDelegate. Downloads for which this verdict is seen will be marked with the danger type DOWNLOAD_DANGER_TYPE_POTENTIALLY_UNWANTED. A dangerous download prompt will be displayed on the download shelf indicating that the download may make changes to the browser or system. Changes are for Windows only since the POTENTIALLY_UNWANTED signal is only implemented for Windows. BUG=262983 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213289

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Address comments #

Patch Set 5 : Add a "Learn more" URL for unwanted downloads. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -37 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/automation/automation_provider.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 1 chunk +11 lines, -6 lines 0 comments Download
M chrome/browser/download/download_danger_prompt.cc View 1 chunk +11 lines, -3 lines 0 comments Download
M chrome/browser/download/download_item_model.cc View 1 2 3 3 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/history/download_database.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/download_database.cc View 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/downloads/downloads.js View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 3 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 1 chunk +18 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/downloads_ui.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/downloads.idl View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/download/download_net_log_parameters.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/download_danger_type.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M net/base/net_log_event_type_list.h View 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
asanka
A screenshot of the warning is at https://code.google.com/p/chromium/issues/detail?id=262983#c3. jam: chrome/browser/automation/ content/public/browser/download_danger_type.h benjhayden: content/browser/download/* chrome/browser/download/* chrome/browser/extensions/api/downloads/ ...
7 years, 5 months ago (2013-07-22 20:06:02 UTC) #1
benjhayden
https://codereview.chromium.org/19863005/diff/14001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): https://codereview.chromium.org/19863005/diff/14001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode544 chrome/browser/download/chrome_download_manager_delegate.cc:544: case DownloadProtectionService::POTENTIALLY_UNWANTED: Maybe collapse these cases with item->OnContentCheckCompleted(result)? https://codereview.chromium.org/19863005/diff/14001/chrome/browser/download/download_item_model.cc ...
7 years, 5 months ago (2013-07-22 20:16:18 UTC) #2
sky
LGTM
7 years, 5 months ago (2013-07-22 21:19:49 UTC) #3
jam
lgtm
7 years, 5 months ago (2013-07-22 23:35:01 UTC) #4
mattm
safe_browsing and net lgtm
7 years, 5 months ago (2013-07-22 23:44:43 UTC) #5
James Hawkins
lgtm
7 years, 5 months ago (2013-07-23 00:52:02 UTC) #6
mattm
oh, I might suggest changing the commit message though. "Implement support for potentially unwanted downloads." ...
7 years, 5 months ago (2013-07-23 01:03:36 UTC) #7
jar (doing other things)
histograms.xml LGTM
7 years, 5 months ago (2013-07-23 03:06:29 UTC) #8
asanka
Thanks everyone! https://codereview.chromium.org/19863005/diff/14001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): https://codereview.chromium.org/19863005/diff/14001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode544 chrome/browser/download/chrome_download_manager_delegate.cc:544: case DownloadProtectionService::POTENTIALLY_UNWANTED: On 2013/07/22 20:16:19, benjhayden_chromium wrote: ...
7 years, 5 months ago (2013-07-23 15:10:36 UTC) #9
asanka
Updated the enum description for downloads.idl based on OOB discussion with benjhayden.
7 years, 5 months ago (2013-07-23 15:42:18 UTC) #10
asanka
On 2013/07/23 01:03:36, mattm wrote: > oh, I might suggest changing the commit message though. ...
7 years, 5 months ago (2013-07-23 15:46:53 UTC) #11
benjhayden
lgtm
7 years, 5 months ago (2013-07-23 15:49:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/19863005/56002
7 years, 5 months ago (2013-07-23 20:07:02 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-23 21:03:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/19863005/56002
7 years, 5 months ago (2013-07-23 21:24:44 UTC) #15
commit-bot: I haz the power
7 years, 5 months ago (2013-07-24 00:16:43 UTC) #16
Message was sent while issue was closed.
Change committed as 213289

Powered by Google App Engine
This is Rietveld 408576698