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

Unified Diff: chrome/browser/extensions/active_tab_permission_granter.cc

Issue 1349613003: [Extensions] Un-refcount PermissionSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
Index: chrome/browser/extensions/active_tab_permission_granter.cc
diff --git a/chrome/browser/extensions/active_tab_permission_granter.cc b/chrome/browser/extensions/active_tab_permission_granter.cc
index cce3f3f9f0974d1729dec1ecb8e45e56d25dbffc..64b79c20c4bbf63f05492d4b30866cd1ce136bf7 100644
--- a/chrome/browser/extensions/active_tab_permission_granter.cc
+++ b/chrome/browser/extensions/active_tab_permission_granter.cc
@@ -104,9 +104,8 @@ void ActiveTabPermissionGranter::GrantIfRequested(const Extension* extension) {
if (!new_apis.empty() || !new_hosts.is_empty()) {
granted_extensions_.Insert(extension);
- scoped_refptr<const PermissionSet> new_permissions =
- new PermissionSet(new_apis, ManifestPermissionSet(),
- new_hosts, URLPatternSet());
+ PermissionSet new_permissions(new_apis, ManifestPermissionSet(), new_hosts,
+ URLPatternSet());
permissions_data->UpdateTabSpecificPermissions(tab_id_, new_permissions);
const content::NavigationEntry* navigation_entry =
web_contents()->GetController().GetVisibleEntry();

Powered by Google App Engine
This is Rietveld 408576698