| 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 14bfc28a010b90f40fafd9d100bad70dd00fbbc2..472d88760e58c35290b5e42549c085c642f58d88 100644
|
| --- a/chrome/browser/extensions/api/notifications/notifications_api.cc
|
| +++ b/chrome/browser/extensions/api/notifications/notifications_api.cc
|
| @@ -20,7 +20,6 @@
|
| #include "content/public/browser/render_process_host.h"
|
| #include "content/public/browser/render_view_host.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"
|
| @@ -157,8 +156,8 @@ class NotificationsApiDelegate : public NotificationDelegate {
|
| }
|
|
|
| virtual bool HasClickedListener() OVERRIDE {
|
| - return ExtensionSystem::Get(profile_)->event_router()->HasEventListener(
|
| - notifications::OnClicked::kEventName);
|
| + return EventRouter::Get(profile_)
|
| + ->HasEventListener(notifications::OnClicked::kEventName);
|
| }
|
|
|
| virtual void ButtonClick(int index) OVERRIDE {
|
| @@ -194,8 +193,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() {
|
|
|