Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1209)

Unified Diff: chrome/browser/extensions/api/downloads/downloads_api.cc

Issue 11440004: Remove deprecated extension EventRouter APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/downloads/downloads_api.cc
diff --git a/chrome/browser/extensions/api/downloads/downloads_api.cc b/chrome/browser/extensions/api/downloads/downloads_api.cc
index b9d24cf1c7a804112feb7ae8fee37a81e6cf5449..164ce7134d7d1d67dddff6d3c711e5a304cccad6 100644
--- a/chrome/browser/extensions/api/downloads/downloads_api.cc
+++ b/chrome/browser/extensions/api/downloads/downloads_api.cc
@@ -486,9 +486,11 @@ void DispatchEventInternal(
scoped_ptr<base::ListValue> event_args) {
if (!extensions::ExtensionSystem::Get(target_profile)->event_router())
return;
+ scoped_ptr<extensions::Event> event(new extensions::Event(
+ event_name, event_args.Pass()));
+ event->restrict_to_profile = target_profile;
extensions::ExtensionSystem::Get(target_profile)->event_router()->
- DispatchEventToRenderers(event_name, event_args.Pass(), target_profile,
- GURL(), extensions::EventFilteringInfo());
+ BroadcastEvent(event.Pass());
ExtensionDownloadsEventRouter::DownloadsNotificationSource
notification_source;
notification_source.event_name = event_name;
« no previous file with comments | « chrome/browser/extensions/api/debugger/debugger_api.cc ('k') | chrome/browser/extensions/api/idle/idle_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698