| Index: chrome/browser/extensions/permissions_updater.cc
|
| diff --git a/chrome/browser/extensions/permissions_updater.cc b/chrome/browser/extensions/permissions_updater.cc
|
| index 5ca9f53c4758fd383b746a7beedc4f0c0cc7ef36..824488543be281375f61bb8bfa922344c6d70e54 100644
|
| --- a/chrome/browser/extensions/permissions_updater.cc
|
| +++ b/chrome/browser/extensions/permissions_updater.cc
|
| @@ -138,13 +138,16 @@ void PermissionsUpdater::NotifyPermissionsUpdated(
|
| !i.IsAtEnd(); i.Advance()) {
|
| RenderProcessHost* host = i.GetCurrentValue();
|
| Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext());
|
| - if (profile_->IsSameProfile(profile))
|
| - host->Send(new ExtensionMsg_UpdatePermissions(
|
| - static_cast<int>(reason),
|
| - extension->id(),
|
| - changed->apis(),
|
| - changed->explicit_hosts(),
|
| - changed->scriptable_hosts()));
|
| + if (profile_->IsSameProfile(profile)) {
|
| + ExtensionMsg_UpdatePermissions_Params info;
|
| + info.reason_id = static_cast<int>(reason);
|
| + info.extension_id = extension->id();
|
| + info.apis = changed->apis();
|
| + info.manifest_permissions = changed->manifest_permissions();
|
| + info.explicit_hosts = changed->explicit_hosts();
|
| + info.scriptable_hosts = changed->scriptable_hosts();
|
| + host->Send(new ExtensionMsg_UpdatePermissions(info));
|
| + }
|
| }
|
|
|
| // Trigger the onAdded and onRemoved events in the extension.
|
|
|