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 7342c6944966580c04e3e977e0befda1c1047073..616ccf3140f11cde0666b0e2f044986e34589187 100644 |
--- a/chrome/browser/extensions/api/downloads/downloads_api.cc |
+++ b/chrome/browser/extensions/api/downloads/downloads_api.cc |
@@ -1861,7 +1861,7 @@ void ExtensionDownloadsEventRouter::DispatchEvent( |
const extensions::Event::WillDispatchCallback& will_dispatch_callback, |
base::Value* arg) { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
- if (!extensions::ExtensionSystem::Get(profile_)->event_router()) |
+ if (!extensions::EventRouter::Get(profile_)) |
return; |
scoped_ptr<base::ListValue> args(new base::ListValue()); |
args->Append(arg); |
@@ -1877,8 +1877,7 @@ void ExtensionDownloadsEventRouter::DispatchEvent( |
event->restrict_to_browser_context = |
(include_incognito && !profile_->IsOffTheRecord()) ? NULL : profile_; |
event->will_dispatch_callback = will_dispatch_callback; |
- extensions::ExtensionSystem::Get(profile_)->event_router()-> |
- BroadcastEvent(event.Pass()); |
+ extensions::EventRouter::Get(profile_)->BroadcastEvent(event.Pass()); |
DownloadsNotificationSource notification_source; |
notification_source.event_name = event_name; |
notification_source.profile = profile_; |