| Index: chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| diff --git a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| index 51be6b210ac5c91476b2d45df17950eaf93560d2..0b0756f222f9e7d993bca90cd81a6f07c3cbfc37 100644
|
| --- a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| +++ b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| @@ -265,10 +265,11 @@ void OffscreenTab::Observe(int type,
|
| // event.
|
| Profile* profile = Profile::FromBrowserContext(
|
| parent_tab_->web_contents()->GetBrowserContext());
|
| + scoped_ptr<extensions::Event> event(new extensions::Event(
|
| + events::kOnOffscreenTabUpdated, args.Pass()));
|
| + event->restrict_to_profile = profile;
|
| extensions::ExtensionSystem::Get(profile)->event_router()->
|
| - DispatchEventToRenderers(
|
| - events::kOnOffscreenTabUpdated, args.Pass(), profile, GURL(),
|
| - extensions::EventFilteringInfo());
|
| + BroadcastEvent(event.Pass());
|
| }
|
|
|
| ParentTab::ParentTab() : web_contents_(NULL) {}
|
|
|