|
Add a feature to display a persistence toggle for permission prompts on Android.
This CL adds a disabled by default feature which shows a "Remember my
decision" toggle on permission prompts on Android. This is designed to
test whether a more explicit representation of permission persistence
(and better control over it) will encourage users to make decisions on
these prompts more often. It is intended to experiment with this
feature from M54.
A new PermissionInfoBar class is added to implement the optional
toggle. Permission-specific code in ConfirmInfoBar is moved into the
new class, which will also be beneficial in the future if permission
prompts stop being infobars. The permission decision is changed
from a boolean allowed/not allowed to the PermissionAction enum
already used for permission metrics reporting.
New metrics to measure the toggle position of prompts which are
granted or denied are also added in this CL to measure whether or
not users actually interact with the toggle (or if merely seeing it
is sufficient to change the wider permission action metrics).
The toggle is explicitly disabled for all permissions except
geolocation, which currently generates the most prompts on Android.
A subsequent CL will implement a corresponding checkbox for
desktop permission prompts using the same feature. The desktop
permission decision will also be changed to a PermissionAction.
BUG= 632269
Committed: https://crrev.com/6957a9ca3f6db210572d6b54dcbcf69baeb978fd
Cr-Commit-Position: refs/heads/master@{#412177}
Total comments: 1
Total comments: 6
Total comments: 2
Total comments: 21
Total comments: 10
Total comments: 5
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+459 lines, -302 lines) |
Patch |
 |
M |
chrome/android/java/res/values/ids.xml
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/infobar/ConfirmInfoBar.java
|
View
|
1
|
5 chunks |
+4 lines, -164 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/infobar/GroupedPermissionInfoBar.java
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionInfoBar.java
|
View
|
1
2
3
4
5
6
7
|
7 chunks |
+50 lines, -38 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/strings/android_chrome_strings.grd
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java_sources.gni
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/geolocation/geolocation_infobar_delegate_android.h
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/geolocation/geolocation_infobar_delegate_android.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/midi_permission_infobar_delegate_android.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/notifications/notification_permission_infobar_delegate.h
|
View
|
1
2
10
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/notifications/notification_permission_infobar_delegate.cc
|
View
|
1
10
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/permissions/permission_context_base_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/permissions/permission_infobar_delegate.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+26 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/permissions/permission_infobar_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+35 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/permissions/permission_queue_controller.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/permissions/permission_queue_controller.cc
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+27 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/permissions/permission_uma_util.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+12 lines, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/permissions/permission_uma_util.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+98 lines, -0 lines |
1 comment
|
Download
|
 |
M |
chrome/browser/permissions/permission_util.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/android/infobars/confirm_infobar.h
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/android/infobars/confirm_infobar.cc
|
View
|
1
2
|
3 chunks |
+11 lines, -30 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/android/infobars/infobar_android.h
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/android/infobars/permission_infobar.h
|
View
|
1
2
3
4
5
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/android/infobars/permission_infobar.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+78 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_ui.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_features.h
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_features.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/metrics/histograms/histograms.xml
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+25 lines, -0 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 68 (43 generated)
|