| Index: chrome/browser/extensions/crx_installer.cc
|
| diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
|
| index 3530d61d931c261535939593ffba046fac400caf..ae663034615218db4b6c71fbbda1cef4a5f29da1 100644
|
| --- a/chrome/browser/extensions/crx_installer.cc
|
| +++ b/chrome/browser/extensions/crx_installer.cc
|
| @@ -26,6 +26,7 @@
|
| #include "chrome/browser/extensions/default_apps_trial.h"
|
| #include "chrome/browser/extensions/extension_error_reporter.h"
|
| #include "chrome/browser/extensions/extension_service.h"
|
| +#include "chrome/browser/extensions/permissions_updater.h"
|
| #include "chrome/browser/shell_integration.h"
|
| #include "chrome/browser/web_applications/web_app.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| @@ -43,6 +44,7 @@
|
| #include "ui/base/resource/resource_bundle.h"
|
|
|
| using content::BrowserThread;
|
| +using extensions::PermissionsUpdater;
|
|
|
| namespace {
|
|
|
| @@ -581,8 +583,10 @@ void CrxInstaller::ReportSuccessFromUIThread() {
|
| // 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_);
|
| + extension_->location() == Extension::INTERNAL) {
|
| + PermissionsUpdater perms_updater(profile());
|
| + perms_updater.GrantActivePermissions(extension_);
|
| + }
|
|
|
| // Tell the frontend about the installation and hand off ownership of
|
| // extension_ to it.
|
|
|