DescriptionAdds the ability to opt out of Safe Browsing download feedback from settings.
Notes:
- The download feedback pref is an enum with a ternary (not binary) value. As a result, need to set up a special handler to toggle the checkbox appropriately.
- Moved DownloadReportingStatus enum from DownloadFeedbackDialogView into DownloadFeedbackService. This lets BrowserOptionsHandler use the enum.
-------
How to test (currently Win & CrOS only):
A
1. Go to chrome://settings on a clean build; search for 'Privacy'
2. Verify that "Send suspicious downloaded files to Google" is not checked
B
1. Visit http://testsafebrowsing.appspot.com/, click on #5
2. Click discard in the download item
3. Click 'No thanks' in the dialog
4. Go to chrome://settings; search for 'Privacy'
5. Verify that "Send suspicious downloaded files to Google" is not checked
C
1. Clear your user preferences (e.g., delete the Preferences file in your user data directory)
2. Visit http://testsafebrowsing.appspot.com/, click on #5
3. Click discard in the download item
4. Click 'OK' in the dialog
5. Go to chrome://settings; search for 'Privacy'
6. Verify that "Send suspicious downloaded files to Google" is checked
-----------
BUG=312533
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251363
Patch Set 1 : First version for review #
Total comments: 6
Patch Set 2 : Refactored pref #Patch Set 3 : Some cleanup #
Total comments: 4
Patch Set 4 : Added named callback #Patch Set 5 : Rebased #Messages
Total messages: 23 (0 generated)
|