| Index: chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc
|
| diff --git a/chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc b/chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc
|
| index 590a2b1a244c756e5120c64622bb6a6b551ae0e5..58bf3c68ad63c0630edd023270ad99bee8d67835 100644
|
| --- a/chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc
|
| +++ b/chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc
|
| @@ -44,9 +44,10 @@ void DispatchEvent(content::BrowserContext* browser_context,
|
|
|
| Profile* profile = Profile::FromBrowserContext(browser_context);
|
| if (profile && extensions::ExtensionSystem::Get(profile)->event_router()) {
|
| - extensions::ExtensionSystem::Get(profile)->event_router()->
|
| - DispatchEventToRenderers(event_name, args.Pass(), profile, GURL(),
|
| - info);
|
| + scoped_ptr<Event> event(new Event(event_name, args.Pass()));
|
| + event->restrict_to_profile = profile;
|
| + event->filter_info = info;
|
| + ExtensionSystem::Get(profile)->event_router()->BroadcastEvent(event.Pass());
|
| }
|
| }
|
|
|
|
|