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

Unified Diff: content/browser/permissions/permission_service_impl.cc

Issue 2617863003: Restore logic to unsubscribe from permission changes on frame change. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/permissions/permission_service_context.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/permissions/permission_service_impl.cc
diff --git a/content/browser/permissions/permission_service_impl.cc b/content/browser/permissions/permission_service_impl.cc
index 75e8a6cd942f2008e8a579cf8feadd617a5b9d12..90767d0599e39d51a5b9c0c105449e0240f2563a 100644
--- a/content/browser/permissions/permission_service_impl.cc
+++ b/content/browser/permissions/permission_service_impl.cc
@@ -257,11 +257,6 @@ void PermissionServiceImpl::AddPermissionObserver(
last_known_status = current_status;
}
- BrowserContext* browser_context = context_->GetBrowserContext();
- DCHECK(browser_context);
- if (!browser_context->GetPermissionManager())
- return;
-
context_->CreateSubscription(PermissionDescriptorToPermissionType(permission),
origin, std::move(observer));
}
« no previous file with comments | « content/browser/permissions/permission_service_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698