summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/permissions_updater.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/permissions_updater.cc')
-rw-r--r--chrome/browser/extensions/permissions_updater.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/extensions/permissions_updater.cc b/chrome/browser/extensions/permissions_updater.cc
index 57c5085..31b4653 100644
--- a/chrome/browser/extensions/permissions_updater.cc
+++ b/chrome/browser/extensions/permissions_updater.cc
@@ -173,11 +173,12 @@ void PermissionsUpdater::DispatchEvent(
scoped_ptr<ListValue> value(new ListValue());
scoped_ptr<api::permissions::Permissions> permissions =
- PackPermissionSet(changed_permissions);
+ PackPermissionSet(changed_permissions);
value->Append(permissions->ToValue().release());
- extensions::ExtensionSystem::Get(profile_)->event_router()->
- DispatchEventToExtension(extension_id, event_name, value.Pass(),
- profile_, GURL());
+ scoped_ptr<Event> event(new Event(event_name, value.Pass()));
+ event->restrict_to_profile = profile_;
+ ExtensionSystem::Get(profile_)->event_router()->
+ DispatchEventToExtension(extension_id, event.Pass());
}
void PermissionsUpdater::NotifyPermissionsUpdated(