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

Issue 2254763002: Enable the optional permission prompt persistence toggle on grouped infobars (Closed)

Created:
4 years, 4 months ago by dominickn
Modified:
4 years, 3 months ago
Reviewers:
kcarattini, xhwang, raymes, gone
CC:
chromium-reviews, mlamouri+watch-permissions_chromium.org, dfalcantara+watch_chromium.org, Sergey Ulanov
Base URL:
https://chromium.googlesource.com/chromium/src.git@permission-infobardelegate-clean
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable the optional permission prompt persistence toggle on grouped infobars This CL adds support for the feature enabling a persistence toggle on permission prompts to grouped permission infobars. The toggle is only shown if an enabling feature is active. Grouped bars are used exclusively for media permissions, so this change allows the toggle to be shown when a single and multiple media permissions are requested. New Android UI tests for responding to the permission prompts triggered by getUserMedia are added to verify the toggle behaviour. The persistence boolean in media_stream_devices_controller is renamed in preparation for upstreaming it into PermissionRequest. BUG=632269 Committed: https://crrev.com/fd008ac9abf59ac99681381b297e00652c285246 Cr-Commit-Position: refs/heads/master@{#418107}

Patch Set 1 #

Patch Set 2 : Add test, plumb through mediastream #

Patch Set 3 : No toggle on combined infobar #

Patch Set 4 : Add metric logging #

Total comments: 8

Patch Set 5 : Addressing comments #

Patch Set 6 : Fix uninitialized variable #

Patch Set 7 : Add CL dependency; improve media impl #

Total comments: 12

Patch Set 8 : Remove dependency CL #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Total comments: 6

Patch Set 11 : Address nits #

Total comments: 2

Patch Set 12 : Fix typo #

Patch Set 13 : Rebase #

Patch Set 14 : DCHECK -> CHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -39 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/GroupedPermissionInfoBar.java View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +16 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionInfoBar.java View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +5 lines, -15 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/media/ui/MediaPermissionsTest.java View 1 2 3 4 1 chunk +244 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc/media_stream_devices_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/media/webrtc/media_stream_devices_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +18 lines, -15 lines 0 comments Download
M chrome/browser/media/webrtc/media_stream_infobar_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc/media_stream_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +54 lines, -0 lines 0 comments Download
M chrome/browser/permissions/grouped_permission_infobar_delegate.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/permissions/grouped_permission_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/android/infobars/grouped_permission_infobar.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/infobars/grouped_permission_infobar.cc View 2 chunks +14 lines, -1 line 0 comments Download
A content/test/data/android/media_permissions.html View 1 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 107 (75 generated)
dominickn
PTAL, thanks!
4 years, 4 months ago (2016-08-17 22:47:46 UTC) #11
raymes
permissions/ looks pretty good. A few comments https://codereview.chromium.org/2254763002/diff/60001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2254763002/diff/60001/chrome/browser/media/media_stream_devices_controller.cc#newcode260 chrome/browser/media/media_stream_devices_controller.cc:260: MediaStreamDevicesController::GetPermissionTypeForContentSettingsType( We ...
4 years, 4 months ago (2016-08-18 06:10:01 UTC) #16
dominickn
Thanks! https://codereview.chromium.org/2254763002/diff/60001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2254763002/diff/60001/chrome/browser/media/media_stream_devices_controller.cc#newcode260 chrome/browser/media/media_stream_devices_controller.cc:260: MediaStreamDevicesController::GetPermissionTypeForContentSettingsType( On 2016/08/18 06:10:00, raymes wrote: > We ...
4 years, 4 months ago (2016-08-18 06:38:20 UTC) #19
gone
lgtm
4 years, 4 months ago (2016-08-18 21:21:49 UTC) #26
dominickn
Thanks! +sergeyu: PTAL at chrome/browser/media.
4 years, 4 months ago (2016-08-18 23:29:50 UTC) #29
dominickn
On 2016/08/18 23:29:50, dominickn wrote: > Thanks! > > +sergeyu: PTAL at chrome/browser/media. FYI sergeyu: ...
4 years, 4 months ago (2016-08-19 05:07:00 UTC) #32
raymes
lgtm My guess is that mic/camera behave differently than geolocation for the not persisting case. ...
4 years, 4 months ago (2016-08-22 04:37:19 UTC) #37
dominickn
Thanks! +kcarattini: do you know the answer to raymes' question? If not I won't change ...
4 years, 4 months ago (2016-08-22 05:30:02 UTC) #39
raymes
https://codereview.chromium.org/2254763002/diff/120001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2254763002/diff/120001/chrome/browser/media/media_stream_devices_controller.cc#newcode478 chrome/browser/media/media_stream_devices_controller.cc:478: if (persist()) On 2016/08/22 05:30:02, dominickn wrote: > On ...
4 years, 4 months ago (2016-08-22 05:35:23 UTC) #40
kcarattini
https://codereview.chromium.org/2254763002/diff/120001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2254763002/diff/120001/chrome/browser/media/media_stream_devices_controller.cc#newcode480 chrome/browser/media/media_stream_devices_controller.cc:480: UpdateTabSpecificContentSettings(audio_setting, video_setting); On 2016/08/22 05:30:02, dominickn wrote: > On ...
4 years, 4 months ago (2016-08-22 05:44:39 UTC) #41
dominickn
https://codereview.chromium.org/2254763002/diff/120001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2254763002/diff/120001/chrome/browser/media/media_stream_devices_controller.cc#newcode478 chrome/browser/media/media_stream_devices_controller.cc:478: if (persist()) On 2016/08/22 05:35:23, raymes wrote: > On ...
4 years, 4 months ago (2016-08-22 06:00:15 UTC) #42
raymes
https://codereview.chromium.org/2254763002/diff/120001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2254763002/diff/120001/chrome/browser/media/media_stream_devices_controller.cc#newcode478 chrome/browser/media/media_stream_devices_controller.cc:478: if (persist()) On 2016/08/22 06:00:15, dominickn wrote: > On ...
4 years, 4 months ago (2016-08-22 06:59:11 UTC) #43
dominickn
https://codereview.chromium.org/2254763002/diff/120001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2254763002/diff/120001/chrome/browser/media/media_stream_devices_controller.cc#newcode478 chrome/browser/media/media_stream_devices_controller.cc:478: if (persist()) On 2016/08/22 06:59:11, raymes wrote: > On ...
4 years, 4 months ago (2016-08-22 07:08:44 UTC) #44
raymes
On 2016/08/22 07:08:44, dominickn wrote: > https://codereview.chromium.org/2254763002/diff/120001/chrome/browser/media/media_stream_devices_controller.cc > File chrome/browser/media/media_stream_devices_controller.cc (right): > > https://codereview.chromium.org/2254763002/diff/120001/chrome/browser/media/media_stream_devices_controller.cc#newcode478 > ...
4 years, 4 months ago (2016-08-22 07:12:00 UTC) #45
dominickn
Both media reviewers seem to be OOO, so I don't think this is going to ...
4 years, 4 months ago (2016-08-23 04:53:59 UTC) #46
dominickn
+xhwang - can you look at chrome/browser/media? Both sergeyu and tommi are OOO.
4 years, 4 months ago (2016-08-23 06:45:31 UTC) #59
xhwang
rs lgtm with nits https://codereview.chromium.org/2254763002/diff/180001/chrome/browser/media/media_stream_devices_controller.h File chrome/browser/media/media_stream_devices_controller.h (right): https://codereview.chromium.org/2254763002/diff/180001/chrome/browser/media/media_stream_devices_controller.h#newcode46 chrome/browser/media/media_stream_devices_controller.h:46: // ContentSettingsType. |type| must be ...
4 years, 4 months ago (2016-08-23 18:03:58 UTC) #62
dominickn
Thanks! https://codereview.chromium.org/2254763002/diff/60001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2254763002/diff/60001/chrome/browser/media/media_stream_devices_controller.cc#newcode260 chrome/browser/media/media_stream_devices_controller.cc:260: MediaStreamDevicesController::GetPermissionTypeForContentSettingsType( On 2016/08/22 04:37:19, raymes wrote: > On ...
4 years, 4 months ago (2016-08-23 20:13:16 UTC) #65
xhwang
LGTM % typo https://codereview.chromium.org/2254763002/diff/200001/chrome/browser/media/media_stream_infobar_delegate_android.h File chrome/browser/media/media_stream_infobar_delegate_android.h (right): https://codereview.chromium.org/2254763002/diff/200001/chrome/browser/media/media_stream_infobar_delegate_android.h#newcode38 chrome/browser/media/media_stream_infobar_delegate_android.h:38: void RecordPermissionAcceptedUma(int psition, bool persist); position
4 years, 4 months ago (2016-08-23 20:27:43 UTC) #66
dominickn
Oops, thanks. https://codereview.chromium.org/2254763002/diff/200001/chrome/browser/media/media_stream_infobar_delegate_android.h File chrome/browser/media/media_stream_infobar_delegate_android.h (right): https://codereview.chromium.org/2254763002/diff/200001/chrome/browser/media/media_stream_infobar_delegate_android.h#newcode38 chrome/browser/media/media_stream_infobar_delegate_android.h:38: void RecordPermissionAcceptedUma(int psition, bool persist); On 2016/08/23 ...
4 years, 4 months ago (2016-08-24 01:00:35 UTC) #71
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/2254763002/220001
4 years, 4 months ago (2016-08-24 03:28:38 UTC) #76
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 4 months ago (2016-08-24 03:33:05 UTC) #78
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/fea9c39c10d391e8b03b77b39b889c54a96a9b5c Cr-Commit-Position: refs/heads/master@{#413970}
4 years, 4 months ago (2016-08-24 03:35:32 UTC) #80
Bernhard Bauer
A revert of this CL (patchset #12 id:220001) has been created in https://codereview.chromium.org/2277733002/ by bauerb@chromium.org. ...
4 years, 4 months ago (2016-08-24 11:48:27 UTC) #81
dominickn
On 2016/08/24 11:48:27, Bernhard (OOO until Sep 7) wrote: > A revert of this CL ...
4 years, 3 months ago (2016-09-01 23:29:09 UTC) #83
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/2254763002/240001
4 years, 3 months ago (2016-09-12 04:35:52 UTC) #90
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 3 months ago (2016-09-12 05:33:05 UTC) #92
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/c23b2a5192ee77dd842b3e79575d586743364b32 Cr-Commit-Position: refs/heads/master@{#417870}
4 years, 3 months ago (2016-09-12 05:34:50 UTC) #94
dominickn
A revert of this CL (patchset #13 id:240001) has been created in https://codereview.chromium.org/2332663002/ by dominickn@chromium.org. ...
4 years, 3 months ago (2016-09-12 07:00:00 UTC) #95
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/2254763002/260001
4 years, 3 months ago (2016-09-12 23:42:04 UTC) #103
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 3 months ago (2016-09-12 23:45:59 UTC) #105
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 23:48:17 UTC) #107
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/fd008ac9abf59ac99681381b297e00652c285246
Cr-Commit-Position: refs/heads/master@{#418107}

Powered by Google App Engine
This is Rietveld 408576698