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

Unified Diff: chrome/browser/chromeos/extensions/permissions_updater_delegate_chromeos.cc

Issue 2840043002: Fix for broken "Load unpacked extension" popup (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/permissions_updater_delegate_chromeos.cc
diff --git a/chrome/browser/chromeos/extensions/permissions_updater_delegate_chromeos.cc b/chrome/browser/chromeos/extensions/permissions_updater_delegate_chromeos.cc
index 28af4c8469ba2a3acf05fc87be106e56fc9c6ea0..341867fcb3f566032942b609a19f0408716780a2 100644
--- a/chrome/browser/chromeos/extensions/permissions_updater_delegate_chromeos.cc
+++ b/chrome/browser/chromeos/extensions/permissions_updater_delegate_chromeos.cc
@@ -34,9 +34,10 @@ void PermissionsUpdaterDelegateChromeOS::InitializePermissions(
// the paste (the end result is just an empty paste).
APIPermissionSet api_permission_set((*granted_permissions)->apis());
api_permission_set.erase(APIPermission::kClipboardRead);
- granted_permissions->reset(
- new PermissionSet(api_permission_set, ManifestPermissionSet(),
- URLPatternSet(), URLPatternSet()));
+ granted_permissions->reset(new PermissionSet(
+ api_permission_set, (*granted_permissions)->manifest_permissions(),
Ivan Šandrk 2017/04/25 18:51:59 Should I maybe have a temporary helper variable to
Devlin 2017/04/25 18:57:48 I'd say it's probably not worth it, since this is
Ivan Šandrk 2017/04/25 19:42:11 I guess it's not worth the bother.
+ (*granted_permissions)->explicit_hosts(),
+ (*granted_permissions)->scriptable_hosts()));
}
} // namespace extensions
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698