DescriptionUse the same codepath for NOTIFICATIONS and PUSH_MESSAGING permissions
We used to have a complicated dependency between the notifications and push
messaging permissions and content settings. The push messaging content setting
will no longer be used (the setting will be deleted in a follow up CL). Since
the permissions are essentially the same now, we reuse the same
PermissionContext class for both, with some very slight behavioral differences
for push messaging.
Behaviorally, this change will mean that if a user happened to have
CONTENT_SETTINGS_TYPE_PUSH_MESSAGING set to block for a particular origin,
they will fall back to their CONTENT_SETTINGS_TYPE_NOTIFICATIONS setting for
that origin. Note that it's very unlikely that any users do have
CONTENT_SETTINGS_TYPE_PUSH_MESSAGING set, as it seems like this setting
was never actually exposed to users on stable. More details can be found here:
https://docs.google.com/document/d/1-Vny4paBx6gFZuCeLX2Gq9ztkF-JhNYM_uqvrQDj-6M/edit#heading=h.h99sppup43dn
BUG=628058
Committed: https://crrev.com/4f82b403f397fbad2e44fe287c05956fcb7cf282
Committed: https://crrev.com/d54345e651e054756b3c00fc80db05170f6cc129
Cr-Original-Commit-Position: refs/heads/master@{#406225}
Cr-Commit-Position: refs/heads/master@{#406768}
Patch Set 1 #Patch Set 2 #
Total comments: 11
Patch Set 3 #Patch Set 4 #Patch Set 5 : . #Patch Set 6 : . #Dependent Patchsets: Messages
Total messages: 39 (21 generated)
|