Warn users about potentially unwanted downloads.
commit7c6d577d3884e307d9b5eadd7444ce07d3ee3536
authorasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 24 Jul 2013 00:16:34 +0000 (24 00:16 +0000)
committerasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 24 Jul 2013 00:16:34 +0000 (24 00:16 +0000)
tree4e54f299c442e3767a73c03fc5eaa7fa1b1dc718
parentcca4f13ac3ec01a3c2d73d567332c885fc2352ae
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

Review URL: https://chromiumcodereview.appspot.com/19863005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213289 0039d316-1c4b-4281-b951-d872f2087c98
23 files changed:
chrome/app/generated_resources.grd
chrome/browser/automation/automation_provider.cc
chrome/browser/download/chrome_download_manager_delegate.cc
chrome/browser/download/download_danger_prompt.cc
chrome/browser/download/download_item_model.cc
chrome/browser/extensions/api/downloads/downloads_api.cc
chrome/browser/history/download_database.cc
chrome/browser/history/download_database.h
chrome/browser/resources/downloads/downloads.js
chrome/browser/safe_browsing/download_protection_service.cc
chrome/browser/safe_browsing/download_protection_service.h
chrome/browser/safe_browsing/download_protection_service_unittest.cc
chrome/browser/ui/views/download/download_item_view.cc
chrome/browser/ui/webui/downloads_dom_handler.cc
chrome/browser/ui/webui/downloads_ui.cc
chrome/common/extensions/api/downloads.idl
chrome/common/url_constants.cc
chrome/common/url_constants.h
content/browser/download/download_item_impl.cc
content/browser/download/download_net_log_parameters.cc
content/public/browser/download_danger_type.h
net/base/net_log_event_type_list.h
tools/metrics/histograms/histograms.xml