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

Issue 2153133002: Add gesture type value from desktop prompt to permission report (Closed)

Created:
4 years, 5 months ago by stefanocs
Modified:
4 years, 4 months ago
CC:
chromium-reviews, mlamouri+watch-geolocation_chromium.org, toyoshim+midi_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, Michael van Ouwerkerk, mlamouri+watch-permissions_chromium.org, harkness+watch_chromium.org, johnme+watch_chromium.org, miu+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@add-user-gesture-to-reporting-part
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add gesture type value from desktop prompt to permission report We are using the value of user_gesture obtained from PermissionContextBase::DecidePermission to obtain the PermissionRequestGestureType value. If user_gesture is true, we record PermissionRequestGestureType::GESTURE, otherwise PermissionRequestGestureType::NO_GESTURE. PermissionRequestGestureType::UNKNOWN is used when it is not applicable. To record PermissionIgnored, gesture type obtained from PermissionRequestImpl. For PermissionRevoked, an UNKNOWN gesture type will be passed in since gesture type only applicable in the prompt UIs where revocations are not possible. To record other permission actions, gesture type can be obtained from PermissionContextBase and its subclasses. For call from media_stream_devices_controller, gesture type is set to UNKNOWN since it will be refactored into PermissionContext soon. BUG=613883 Committed: https://crrev.com/d8726709c5a13788275fbbea9770db0c67f4fb7e Cr-Commit-Position: refs/heads/master@{#408329}

Patch Set 1 #

Patch Set 2 #

Patch Set 3 #

Patch Set 4 #

Patch Set 5 #

Patch Set 6 #

Patch Set 7 #

Patch Set 8 #

Patch Set 9 #

Patch Set 10 #

Patch Set 11 #

Patch Set 12 #

Patch Set 13 #

Patch Set 14 #

Patch Set 15 #

Patch Set 16 #

Patch Set 17 #

Patch Set 18 #

Patch Set 19 #

Total comments: 21

Patch Set 20 : Remove push messaging add comment fix nits #

Total comments: 11

Patch Set 21 : Update comments + change permission revoked user gesture to true #

Patch Set 22 : nit: #

Total comments: 6

Patch Set 23 : fix nits #

Patch Set 24 : Remove push messaging + change revoked to false user gesture #

Patch Set 25 : rebase #

Patch Set 26 : rebase #

Patch Set 27 : merge rebase #

Patch Set 28 : rebase again #

Patch Set 29 : merge #

Total comments: 4

Patch Set 30 : Fix nits #

Patch Set 31 : Rebase #

Patch Set 32 : rebase #

Total comments: 5

Patch Set 33 : Send user_gesture to permission reporter #

Patch Set 34 : Rebased with the new cl #

Patch Set 35 : Use permission request gesture type #

Patch Set 36 : Change back mistake #

Total comments: 2

Patch Set 37 : Add comment #

Patch Set 38 : add include #

Patch Set 39 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -57 lines) Patch
M chrome/browser/geolocation/geolocation_permission_context_android.cc View 1 2 3 4 12 13 14 15 16 17 35 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/media_stream_devices_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/permissions/permission_context_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/permissions/permission_context_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 4 chunks +23 lines, -15 lines 0 comments Download
M chrome/browser/permissions/permission_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/permissions/permission_queue_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 2 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/permissions/permission_request_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/permissions/permission_uma_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_uma_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 3 chunks +37 lines, -26 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 130 (107 generated)
stefanocs
4 years, 5 months ago (2016-07-17 23:52:07 UTC) #59
raymes
https://codereview.chromium.org/2153133002/diff/360001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2153133002/diff/360001/chrome/browser/media/media_stream_devices_controller.cc#newcode82 chrome/browser/media/media_stream_devices_controller.cc:82: callback.Run(permission_type, false /* user_gesture */, Do we need to ...
4 years, 5 months ago (2016-07-18 00:58:43 UTC) #60
stefanocs
https://codereview.chromium.org/2153133002/diff/360001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2153133002/diff/360001/chrome/browser/media/media_stream_devices_controller.cc#newcode82 chrome/browser/media/media_stream_devices_controller.cc:82: callback.Run(permission_type, false /* user_gesture */, On 2016/07/18 00:58:43, raymes ...
4 years, 5 months ago (2016-07-18 04:28:45 UTC) #61
kcarattini
https://codereview.chromium.org/2153133002/diff/380001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2153133002/diff/380001/chrome/browser/media/media_stream_devices_controller.cc#newcode82 chrome/browser/media/media_stream_devices_controller.cc:82: // The actual |user_gesture| will be passed once this ...
4 years, 5 months ago (2016-07-18 07:04:33 UTC) #62
stefanocs
https://codereview.chromium.org/2153133002/diff/380001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2153133002/diff/380001/chrome/browser/media/media_stream_devices_controller.cc#newcode82 chrome/browser/media/media_stream_devices_controller.cc:82: // The actual |user_gesture| will be passed once this ...
4 years, 5 months ago (2016-07-18 07:19:33 UTC) #63
raymes
lgtm https://codereview.chromium.org/2153133002/diff/360001/chrome/browser/permissions/permission_context_base.cc File chrome/browser/permissions/permission_context_base.cc (right): https://codereview.chromium.org/2153133002/diff/360001/chrome/browser/permissions/permission_context_base.cc#newcode194 chrome/browser/permissions/permission_context_base.cc:194: // TODO(stefanocs): Get user gesture from infobar. Looks ...
4 years, 5 months ago (2016-07-18 07:31:59 UTC) #64
stefanocs
https://codereview.chromium.org/2153133002/diff/380001/chrome/browser/push_messaging/push_messaging_permission_context.cc File chrome/browser/push_messaging/push_messaging_permission_context.cc (right): https://codereview.chromium.org/2153133002/diff/380001/chrome/browser/push_messaging/push_messaging_permission_context.cc#newcode123 chrome/browser/push_messaging/push_messaging_permission_context.cc:123: PermissionUmaUtil::PermissionDenied(permission_type(), On 2016/07/18 07:31:59, raymes wrote: > On 2016/07/18 ...
4 years, 5 months ago (2016-07-18 07:40:26 UTC) #65
kcarattini
lgtm https://codereview.chromium.org/2153133002/diff/380001/chrome/browser/permissions/permission_uma_util.cc File chrome/browser/permissions/permission_uma_util.cc (right): https://codereview.chromium.org/2153133002/diff/380001/chrome/browser/permissions/permission_uma_util.cc#newcode240 chrome/browser/permissions/permission_uma_util.cc:240: false /* user_gesture */, revoked_origin, profile); On 2016/07/18 ...
4 years, 5 months ago (2016-07-18 08:03:20 UTC) #66
stefanocs
Thanks! sergeyu@chromium.org: Please review changes in chrome/browser/media/media_stream_devices_controller.cc timvolodine@chromium.org: Please review changes in chrome/browser/geolocation/geolocation_permission_context_android.cc https://codereview.chromium.org/2153133002/diff/380001/chrome/browser/permissions/permission_uma_util.cc File ...
4 years, 5 months ago (2016-07-18 11:13:34 UTC) #69
stefanocs
Thanks! sergeyu@chromium.org: Please review changes in chrome/browser/media/media_stream_devices_controller.cc timvolodine@chromium.org: Please review changes in chrome/browser/geolocation/geolocation_permission_context_android.cc https://codereview.chromium.org/2153133002/diff/380001/chrome/browser/permissions/permission_uma_util.cc File ...
4 years, 5 months ago (2016-07-18 11:13:34 UTC) #70
Sergey Ulanov
lgtm https://codereview.chromium.org/2153133002/diff/560001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2153133002/diff/560001/chrome/browser/media/media_stream_devices_controller.cc#newcode75 chrome/browser/media/media_stream_devices_controller.cc:75: bool /* user_gesture */, nit: don't need to ...
4 years, 5 months ago (2016-07-21 19:32:47 UTC) #83
stefanocs
Thanks! ping timvolodine https://codereview.chromium.org/2153133002/diff/560001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2153133002/diff/560001/chrome/browser/media/media_stream_devices_controller.cc#newcode75 chrome/browser/media/media_stream_devices_controller.cc:75: bool /* user_gesture */, On 2016/07/21 ...
4 years, 5 months ago (2016-07-22 00:56:11 UTC) #84
timvolodine
could you pls add in the description why user_gesture in media_stream_devices_controller is set to false ...
4 years, 5 months ago (2016-07-25 13:58:59 UTC) #95
stefanocs
Thanks. Could you lgtm this cl if everything else seem ok? https://codereview.chromium.org/2153133002/diff/620001/chrome/browser/permissions/permission_uma_util.cc File chrome/browser/permissions/permission_uma_util.cc (right): ...
4 years, 5 months ago (2016-07-25 14:22:05 UTC) #97
stefanocs
https://codereview.chromium.org/2153133002/diff/620001/chrome/browser/permissions/permission_uma_util.cc File chrome/browser/permissions/permission_uma_util.cc (right): https://codereview.chromium.org/2153133002/diff/620001/chrome/browser/permissions/permission_uma_util.cc#newcode344 chrome/browser/permissions/permission_uma_util.cc:344: bool user_gesture, On 2016/07/25 13:58:58, timvolodine wrote: > so ...
4 years, 5 months ago (2016-07-26 00:37:11 UTC) #98
stefanocs
Hi, I have updated the cl to pass in a PermissionRequestGestureType instead of a boolean. ...
4 years, 5 months ago (2016-07-26 06:03:00 UTC) #99
kcarattini
lgtm
4 years, 5 months ago (2016-07-26 06:48:25 UTC) #100
timvolodine
ok thanks, chrome/browser/geolocation/ -- lgtm However, please update the description I think it's a bit ...
4 years, 4 months ago (2016-07-26 14:47:40 UTC) #101
raymes
lgtm
4 years, 4 months ago (2016-07-27 03:25:01 UTC) #103
stefanocs
Thanks! @timvolodine: Sorry the desc was outdated, I have updated the desc. https://codereview.chromium.org/2153133002/diff/700001/chrome/browser/permissions/permission_uma_util.cc File chrome/browser/permissions/permission_uma_util.cc ...
4 years, 4 months ago (2016-07-27 03:38:30 UTC) #107
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2153133002/760001
4 years, 4 months ago (2016-07-28 03:40:53 UTC) #126
commit-bot: I haz the power
Committed patchset #39 (id:760001)
4 years, 4 months ago (2016-07-28 03:45:25 UTC) #128
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 03:47:45 UTC) #130
Message was sent while issue was closed.
Patchset 39 (id:??) landed as
https://crrev.com/d8726709c5a13788275fbbea9770db0c67f4fb7e
Cr-Commit-Position: refs/heads/master@{#408329}

Powered by Google App Engine
This is Rietveld 408576698