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

Issue 2617863003: Restore logic to unsubscribe from permission changes on frame change. (Closed)

Created:
3 years, 11 months ago by Reilly Grant (use Gerrit)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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} Committed: https://chromium.googlesource.com/chromium/src/+/9c28b5c29961ba84106ab9b84821717441e106d7

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -15 lines) Patch
M content/browser/permissions/permission_service_context.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/permissions/permission_service_context.cc View 3 chunks +12 lines, -9 lines 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
Reilly Grant (use Gerrit)
Please take a look.
3 years, 11 months ago (2017-01-06 16:59:27 UTC) #6
scheib
LGTM
3 years, 11 months ago (2017-01-06 20:37:06 UTC) #9
Reilly Grant (use Gerrit)
Thank you Vince. TBRing mlamouri because this is causing an high CPM in canary.
3 years, 11 months ago (2017-01-06 20:45:01 UTC) #11
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/2617863003/1
3 years, 11 months ago (2017-01-06 20:45:45 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 20:52:03 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/9c28b5c29961ba84106ab9b84821...

Powered by Google App Engine
This is Rietveld 408576698