DescriptionRestore logic to unsubscribe from permission changes on frame change.
In r441491 I neglected to notice that the lifetime of the
PermissionManager is longer than that of PermissionServiceContext. On
frame changes existing subscriptions should be cleared as they were
before that patch.
PermissionServiceImpl::AddPermissionObserver removes redundant
early return logic checking that
browser_context->GetPermissionManager() is non null.
CreateSubscription already does that.
BUG=677774, 678664
TBR=mlamouri@chromium.org
Review-Url: https://codereview.chromium.org/2617863003
Cr-Commit-Position: refs/heads/master@{#442042}
Committed: https://chromium.googlesource.com/chromium/src/+/9c28b5c29961ba84106ab9b84821717441e106d7
Patch Set 1 #
Messages
Total messages: 16 (11 generated)
|