| Index: chrome/browser/extensions/crx_installer.cc
|
| diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
|
| index e772a0f2bcafc2cbb0b499daac4a9247cea6c707..7f76e1dc411b1d46c1da90e277303ca853b15518 100644
|
| --- a/chrome/browser/extensions/crx_installer.cc
|
| +++ b/chrome/browser/extensions/crx_installer.cc
|
| @@ -546,6 +546,13 @@ void CrxInstaller::ReportSuccessFromUIThread() {
|
| if (client_)
|
| client_->OnInstallSuccess(extension_.get(), install_icon_.get());
|
|
|
| + // We update the extension's granted permissions if the user already approved
|
| + // the install (client_ is non NULL), or we are allowed to install this
|
| + // silently. We only track granted permissions for INTERNAL extensions.
|
| + if ((client_ || allow_silent_install_) &&
|
| + extension_->location() == Extension::INTERNAL)
|
| + frontend_weak_->GrantPermissions(extension_);
|
| +
|
| // Tell the frontend about the installation and hand off ownership of
|
| // extension_ to it.
|
| frontend_weak_->OnExtensionInstalled(extension_);
|
|
|