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

Issue 402293002: Experience sampling instrumentation for dangerous downloads warnings (Closed)

Created:
6 years, 5 months ago by Chris Thompson
Modified:
6 years, 4 months ago
Reviewers:
asanka, groby-ooo-7-16, felt, msw
CC:
asanka, Alexei Svitkine (slow), benjhayden+dwatch_chromium.org, chromium-reviews, Ilya Sherman, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@sampling-api
Project:
chromium
Visibility:
Public.

Description

Experience sampling instrumentation for dangerous downloads warnings BUG=384635 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290076

Patch Set 1 #

Patch Set 2 : Rebase-update #

Patch Set 3 : rebase-update #

Total comments: 4

Patch Set 4 : Instrument the native danger prompt UI #

Patch Set 5 : Adding Cocoa instrumentation #

Total comments: 4

Patch Set 6 : Address reviewer nits (felt) #

Patch Set 7 : Add missing constants to Cocoa version #

Total comments: 18

Patch Set 8 : Address reviewer comments #

Total comments: 10

Patch Set 9 : Address comments. Clean up instrumentation in DownloadItemView #

Total comments: 5

Patch Set 10 : Add missing DangerPrompt instrumentation, clean up strings #

Patch Set 11 : Updating string constants in Cocoa too #

Total comments: 2

Patch Set 12 : Add default actions for tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -0 lines) Patch
M chrome/browser/download/download_danger_prompt.cc View 1 2 3 4 5 6 7 8 9 5 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/download/download_danger_prompt_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/experience_sampling_private/experience_sampling.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/experience_sampling_private/experience_sampling.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_controller.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_controller.mm View 1 2 3 4 5 6 7 8 9 10 6 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/download/download_danger_prompt_views.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 2 3 4 5 6 7 8 9 7 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Chris Thompson
felt@, here's the partial CL for instrumenting the downloads warnings. Could you let me know ...
6 years, 5 months ago (2014-07-21 23:40:58 UTC) #1
Chris Thompson
On 2014/07/21 23:40:58, Chris Thompson wrote: > felt@, here's the partial CL for instrumenting the ...
6 years, 5 months ago (2014-07-24 20:35:08 UTC) #2
felt
This seems like a reasonable approach. You'll also want to add to: https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/download/download_danger_prompt.cc And to: ...
6 years, 5 months ago (2014-07-25 17:36:50 UTC) #3
felt
https://codereview.chromium.org/402293002/diff/40001/chrome/browser/ui/views/download/download_item_view.cc File chrome/browser/ui/views/download/download_item_view.cc (right): https://codereview.chromium.org/402293002/diff/40001/chrome/browser/ui/views/download/download_item_view.cc#newcode1138 chrome/browser/ui/views/download/download_item_view.cc:1138: sampling_event_->CreateUserDecisionEvent("proceed"); P.S. remember that you defined constants for "proceed" ...
6 years, 5 months ago (2014-07-25 21:23:21 UTC) #4
Chris Thompson
I added instrumentation to the DownloadDangerPromptImpl. DownloadDangerPromptImpl should cover the "saving malicious download" case, and ...
6 years, 4 months ago (2014-08-11 19:35:16 UTC) #5
felt
this looks fine to me at a first pass, please fix nits and send to ...
6 years, 4 months ago (2014-08-11 21:57:27 UTC) #6
Chris Thompson
https://codereview.chromium.org/402293002/diff/80001/chrome/browser/download/download_danger_prompt.cc File chrome/browser/download/download_danger_prompt.cc (right): https://codereview.chromium.org/402293002/diff/80001/chrome/browser/download/download_danger_prompt.cc#newcode25 chrome/browser/download/download_danger_prompt.cc:25: // Constants for the Experience Sampling instrumentation. On 2014/08/11 ...
6 years, 4 months ago (2014-08-11 22:00:50 UTC) #7
Chris Thompson
For various OWNERS approval, could you PTAL? msw@ for chrome/browser/ui/views/* groby@ for chrome/browser/ui/cocoa/* asanka@ for ...
6 years, 4 months ago (2014-08-13 16:59:59 UTC) #8
msw
I have no idea why extensions would care about whether users respond to dangerous download ...
6 years, 4 months ago (2014-08-13 20:11:38 UTC) #9
Alexei Svitkine (slow)
I haven't heard of this. Is there a design doc somewhere? On Wed, Aug 13, ...
6 years, 4 months ago (2014-08-13 20:39:24 UTC) #10
groby-ooo-7-16
Travelling today, will address tomorrow
6 years, 4 months ago (2014-08-13 20:40:14 UTC) #11
asanka
https://codereview.chromium.org/402293002/diff/120001/chrome/browser/ui/views/download/download_item_view.h File chrome/browser/ui/views/download/download_item_view.h (right): https://codereview.chromium.org/402293002/diff/120001/chrome/browser/ui/views/download/download_item_view.h#newcode347 chrome/browser/ui/views/download/download_item_view.h:347: scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; Yeah. chrome://downloads also provides a UI surface. ...
6 years, 4 months ago (2014-08-13 20:59:30 UTC) #12
Chris Thompson
This API is to allow the Chrome Security UX team to perform experience sampling of ...
6 years, 4 months ago (2014-08-13 21:18:00 UTC) #13
msw
I hope others will assess the overall ExperienceSampling feature plan/design, that's not quite up my ...
6 years, 4 months ago (2014-08-14 01:48:33 UTC) #14
Chris Thompson
https://codereview.chromium.org/402293002/diff/140001/chrome/browser/extensions/api/experience_sampling_private/experience_sampling.cc File chrome/browser/extensions/api/experience_sampling_private/experience_sampling.cc (right): https://codereview.chromium.org/402293002/diff/140001/chrome/browser/extensions/api/experience_sampling_private/experience_sampling.cc#newcode17 chrome/browser/extensions/api/experience_sampling_private/experience_sampling.cc:17: // String constants for user decision events. On 2014/08/14 ...
6 years, 4 months ago (2014-08-14 15:43:44 UTC) #15
Chris Thompson
https://codereview.chromium.org/402293002/diff/140001/chrome/browser/ui/views/download/download_item_view.cc File chrome/browser/ui/views/download/download_item_view.cc (right): https://codereview.chromium.org/402293002/diff/140001/chrome/browser/ui/views/download/download_item_view.cc#newcode1139 chrome/browser/ui/views/download/download_item_view.cc:1139: sampling_event_->CreateUserDecisionEvent(ExperienceSamplingEvent::kProceed); On 2014/08/14 15:43:44, Chris Thompson wrote: > On ...
6 years, 4 months ago (2014-08-14 17:19:16 UTC) #16
msw
chrome/browser/ui/views/* lgtm with nit qs. https://codereview.chromium.org/402293002/diff/140001/chrome/browser/ui/views/download/download_item_view.cc File chrome/browser/ui/views/download/download_item_view.cc (right): https://codereview.chromium.org/402293002/diff/140001/chrome/browser/ui/views/download/download_item_view.cc#newcode1139 chrome/browser/ui/views/download/download_item_view.cc:1139: sampling_event_->CreateUserDecisionEvent(ExperienceSamplingEvent::kProceed); On 2014/08/14 17:19:16, ...
6 years, 4 months ago (2014-08-14 17:56:44 UTC) #17
Chris Thompson
https://codereview.chromium.org/402293002/diff/160001/chrome/browser/ui/views/download/download_item_view.cc File chrome/browser/ui/views/download/download_item_view.cc (right): https://codereview.chromium.org/402293002/diff/160001/chrome/browser/ui/views/download/download_item_view.cc#newcode562 chrome/browser/ui/views/download/download_item_view.cc:562: if (sampling_event_.get()) { On 2014/08/14 17:56:44, msw wrote: > ...
6 years, 4 months ago (2014-08-14 20:00:03 UTC) #18
msw
https://codereview.chromium.org/402293002/diff/160001/chrome/browser/ui/views/download/download_item_view.cc File chrome/browser/ui/views/download/download_item_view.cc (right): https://codereview.chromium.org/402293002/diff/160001/chrome/browser/ui/views/download/download_item_view.cc#newcode562 chrome/browser/ui/views/download/download_item_view.cc:562: if (sampling_event_.get()) { On 2014/08/14 20:00:03, Chris Thompson wrote: ...
6 years, 4 months ago (2014-08-14 20:46:42 UTC) #19
felt
chrome/browser/extensions/api/experience_sampling_private/experience_sampling.{h|cc} lgtm
6 years, 4 months ago (2014-08-14 22:23:02 UTC) #20
groby-ooo-7-16
c/b/ui/cocoa lgtm
6 years, 4 months ago (2014-08-14 23:02:19 UTC) #21
asanka
/download/ lgtm. I'll leave it up to you how you would like to interpret CANCEL ...
6 years, 4 months ago (2014-08-15 15:53:32 UTC) #22
Chris Thompson
https://codereview.chromium.org/402293002/diff/200001/chrome/browser/download/download_danger_prompt.cc File chrome/browser/download/download_danger_prompt.cc (right): https://codereview.chromium.org/402293002/diff/200001/chrome/browser/download/download_danger_prompt.cc#newcode232 chrome/browser/download/download_danger_prompt.cc:232: sampling_event_->CreateUserDecisionEvent(ExperienceSamplingEvent::kDeny); On 2014/08/15 15:53:32, asanka wrote: > DISMISS means ...
6 years, 4 months ago (2014-08-15 16:05:28 UTC) #23
Chris Thompson
The CQ bit was checked by cthomp@chromium.org
6 years, 4 months ago (2014-08-15 17:34:06 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cthomp@chromium.org/402293002/220001
6 years, 4 months ago (2014-08-15 17:35:10 UTC) #25
commit-bot: I haz the power
6 years, 4 months ago (2014-08-16 01:10:26 UTC) #26
Message was sent while issue was closed.
Committed patchset #12 (220001) as 290076

Powered by Google App Engine
This is Rietveld 408576698