Implement new dangerous download reporting dialog for UNCOMMON_DOWNLOAD, in Views
commitac569864d83871c0182461e6431366d1785ef26f
authorfelt@chromium.org <felt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 7 Feb 2014 21:42:47 +0000 (7 21:42 +0000)
committerfelt@chromium.org <felt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 7 Feb 2014 21:42:47 +0000 (7 21:42 +0000)
treea4811b7370aaa6f8a3f2f25de474f3790a59bde0
parent0a6b7c7b7aec6fd3f46f41d03319c27dffdf6810
Implement new dangerous download reporting dialog for UNCOMMON_DOWNLOAD, in Views

Adds a new dialog, DownloadFeedbackDialogView, to ask people whether they want to participate in the upload program. Currently only hooked up to UNCOMMON_DOWNLOAD.

Still TODO:
- need to add dialog to DANGEROUS_HOST as well
- need to add new histogram for dialog once DANGEROUS_HOST is in place

--------------

How to test [Win & CrOS only]:
1. Visit http://testsafebrowsing.appspot.com/, click on #5, then click discard, then click any choice in the dialog
2. If you repeat #1, you shouldn't see the dialog again unless you delete the preferences file in the User Data directory
3. If you do #1 in two separate windows, only one of them should trigger the dialog

BUG=312533
TBR=asanka@chromium.org

Review URL: https://codereview.chromium.org/147593002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249796 0039d316-1c4b-4281-b951-d872f2087c98
chrome/app/generated_resources.grd
chrome/browser/download/download_shelf_context_menu.cc
chrome/browser/ui/views/download/download_feedback_dialog_view.cc [new file with mode: 0644]
chrome/browser/ui/views/download/download_feedback_dialog_view.h [new file with mode: 0644]
chrome/browser/ui/views/download/download_item_view.cc
chrome/browser/ui/views/download/download_item_view.h
chrome/browser/ui/views/download/download_shelf_view.h
chrome/chrome_browser_ui.gypi