Restore 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}
Showing
Please register or sign in to comment