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

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

Issue 510943003: Register granting of previously withheld permissions as a permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add initialization calls before granting permissions Created 6 years, 4 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/crx_installer.cc
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
index ec7ce8a5e09ad9c528a1917157076ce5df48f3eb..d3736ee900466ecd9fc50780aeab95b160892b1a 100644
--- a/chrome/browser/extensions/crx_installer.cc
+++ b/chrome/browser/extensions/crx_installer.cc
@@ -803,6 +803,7 @@ void CrxInstaller::ReportSuccessFromUIThread() {
// this silently.
if ((client_ || allow_silent_install_) && grant_permissions_) {
PermissionsUpdater perms_updater(profile());
+ perms_updater.InitializePermissions(extension());
not at google - send to devlin 2014/08/28 03:18:46 Can we do this when extension() gets created?
gpdavis 2014/08/28 19:02:39 Looks like this gets created in sandboxed_unpacker
perms_updater.GrantActivePermissions(extension());
}
}
« no previous file with comments | « no previous file | chrome/browser/extensions/unpacked_installer.cc » ('j') | chrome/browser/extensions/unpacked_installer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698