Index: chrome/browser/extensions/api/notifications/notifications_api.cc |
diff --git a/chrome/browser/extensions/api/notifications/notifications_api.cc b/chrome/browser/extensions/api/notifications/notifications_api.cc |
index 590eaa6eb16975df6d58ead30cd055a612f4716b..c8e68a4269161ffeab5596156b1960a590eb7184 100644 |
--- a/chrome/browser/extensions/api/notifications/notifications_api.cc |
+++ b/chrome/browser/extensions/api/notifications/notifications_api.cc |
@@ -21,7 +21,6 @@ |
#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/web_contents.h" |
#include "extensions/browser/event_router.h" |
-#include "extensions/browser/extension_system.h" |
#include "extensions/common/extension.h" |
#include "extensions/common/features/feature.h" |
#include "third_party/skia/include/core/SkBitmap.h" |
@@ -158,7 +157,7 @@ class NotificationsApiDelegate : public NotificationDelegate { |
} |
virtual bool HasClickedListener() OVERRIDE { |
- return ExtensionSystem::Get(profile_)->event_router()->HasEventListener( |
+ return EventRouter::Get(profile_)->HasEventListener( |
notifications::OnClicked::kEventName); |
} |
@@ -198,8 +197,8 @@ class NotificationsApiDelegate : public NotificationDelegate { |
void SendEvent(const std::string& name, scoped_ptr<base::ListValue> args) { |
scoped_ptr<Event> event(new Event(name, args.Pass())); |
- ExtensionSystem::Get(profile_)->event_router()->DispatchEventToExtension( |
- extension_id_, event.Pass()); |
+ EventRouter::Get(profile_)->DispatchEventToExtension(extension_id_, |
+ event.Pass()); |
} |
scoped_ptr<base::ListValue> CreateBaseEventArgs() { |