| 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 90db58f23c0cde1517da34dfda51383ab9217f6a..12265c7a483644738c6f873876f4fe3fd730fe54 100644
|
| --- a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| +++ b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| @@ -281,10 +281,11 @@ void OffscreenTab::Observe(int type,
|
| // The event router only dispatches the event to renderers listening for the
|
| // event.
|
| Profile* profile = parent_tab_->tab_contents()->profile();
|
| + 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() : tab_contents_(NULL) {}
|
|
|