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

Issue 153353006: Opt out of download feedback from settings (Closed)

Created:
6 years, 10 months ago by felt
Modified:
6 years, 10 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Adds 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -73 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/options/browser_options.html View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/download/download_feedback_dialog_view.h View 1 2 3 2 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/download/download_feedback_dialog_view.cc View 1 2 3 3 chunks +19 lines, -22 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 2 2 chunks +15 lines, -26 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 1 chunk +3 lines, -6 lines 0 comments Download
M tools/metrics/actions/chromeactions.txt View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
felt
Hi Dan, Can you please review this CL? One small open question: what is the ...
6 years, 10 months ago (2014-02-11 04:13:51 UTC) #1
Dan Beam
lgtm w/nits > what is the metric="..." field? metric="..." corresponds to a user metric action ...
6 years, 10 months ago (2014-02-12 22:53:01 UTC) #2
Dan Beam
actually, wait -- can't you use a boolean and determine whether the pref has ever ...
6 years, 10 months ago (2014-02-12 22:55:48 UTC) #3
Dan Beam
use a boolean => register as a boolean pref**
6 years, 10 months ago (2014-02-12 22:56:15 UTC) #4
felt
asvitkine@, can you tell me what I should do with the metric="..." field? tools/metrics/actions/chromeactions.txt doesn't ...
6 years, 10 months ago (2014-02-13 05:17:58 UTC) #5
felt
pkasting, I'll need your OWNERS review for chrome/browser/ui/views/download/*. But first: Dan suggested that I remove ...
6 years, 10 months ago (2014-02-13 05:22:34 UTC) #6
Alexei Svitkine (slow)
I think the metric= field does indeed introduce a new User Action. Can you run ...
6 years, 10 months ago (2014-02-13 15:55:51 UTC) #7
Peter Kasting
On 2014/02/13 05:22:34, felt wrote: > pkasting, I'll need your OWNERS review for chrome/browser/ui/views/download/*. > ...
6 years, 10 months ago (2014-02-13 18:22:48 UTC) #8
felt
On 2014/02/13 15:55:51, Alexei Svitkine wrote: > I think the metric= field does indeed introduce ...
6 years, 10 months ago (2014-02-13 21:02:43 UTC) #9
felt
On 2014/02/13 18:22:48, Peter Kasting wrote: > On 2014/02/13 05:22:34, felt wrote: > > pkasting, ...
6 years, 10 months ago (2014-02-13 21:03:49 UTC) #10
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/153353006/diff/300001/chrome/browser/ui/views/download/download_feedback_dialog_view.cc File chrome/browser/ui/views/download/download_feedback_dialog_view.cc (right): https://chromiumcodereview.appspot.com/153353006/diff/300001/chrome/browser/ui/views/download/download_feedback_dialog_view.cc#newcode56 chrome/browser/ui/views/download/download_feedback_dialog_view.cc:56: callback.Run(false /* disabled */); Nit: Don't add these ...
6 years, 10 months ago (2014-02-13 22:17:51 UTC) #11
felt
https://codereview.chromium.org/153353006/diff/300001/chrome/browser/ui/views/download/download_feedback_dialog_view.cc File chrome/browser/ui/views/download/download_feedback_dialog_view.cc (right): https://codereview.chromium.org/153353006/diff/300001/chrome/browser/ui/views/download/download_feedback_dialog_view.cc#newcode56 chrome/browser/ui/views/download/download_feedback_dialog_view.cc:56: callback.Run(false /* disabled */); On 2014/02/13 22:17:52, Peter Kasting ...
6 years, 10 months ago (2014-02-14 00:21:49 UTC) #12
felt
Elliot, can I get an OWNERS review for chrome/browser/profiles/profile.cc? Tiny change -- just a renamed ...
6 years, 10 months ago (2014-02-14 00:24:03 UTC) #13
Elliot Glaysher
owners stamp lgtm
6 years, 10 months ago (2014-02-14 00:31:24 UTC) #14
felt
alexei, please do an OWNERS review for tools/metrics. thanks!
6 years, 10 months ago (2014-02-14 05:32:27 UTC) #15
Alexei Svitkine (slow)
metrics lgtm
6 years, 10 months ago (2014-02-14 14:50:24 UTC) #16
felt
The CQ bit was checked by felt@chromium.org
6 years, 10 months ago (2014-02-14 15:18:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/153353006/370001
6 years, 10 months ago (2014-02-14 15:19:25 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 15:19:33 UTC) #19
commit-bot: I haz the power
Failed to apply patch for tools/metrics/actions/chromeactions.txt: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-02-14 15:19:34 UTC) #20
felt
The CQ bit was checked by felt@chromium.org
6 years, 10 months ago (2014-02-14 15:27:47 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/153353006/470001
6 years, 10 months ago (2014-02-14 15:28:59 UTC) #22
commit-bot: I haz the power
6 years, 10 months ago (2014-02-14 17:33:34 UTC) #23
Message was sent while issue was closed.
Change committed as 251363

Powered by Google App Engine
This is Rietveld 408576698