Index: chrome/browser/extensions/event_router.cc |
diff --git a/chrome/browser/extensions/event_router.cc b/chrome/browser/extensions/event_router.cc |
index 19358599082197068e2d0980d61036990b53080b..17b9375188bb716304e199a8c1b6c0786001598f 100644 |
--- a/chrome/browser/extensions/event_router.cc |
+++ b/chrome/browser/extensions/event_router.cc |
@@ -198,6 +198,9 @@ void EventRouter::OnListenerAdded(const EventListener* listener) { |
if (SystemInfoEventRouter::IsSystemInfoEvent(event_name)) |
SystemInfoEventRouter::GetInstance()->AddEventListener(event_name); |
+ ExtensionService* service = |
+ ExtensionSystem::Get(profile_)->extension_service(); |
+ service->NotifyExtensionEventRoutersOnListenerAdded(event_name); |
} |
void EventRouter::OnListenerRemoved(const EventListener* listener) { |
@@ -225,6 +228,9 @@ void EventRouter::OnListenerRemoved(const EventListener* listener) { |
if (SystemInfoEventRouter::IsSystemInfoEvent(event_name)) |
SystemInfoEventRouter::GetInstance()->RemoveEventListener(event_name); |
+ ExtensionService* service = |
+ ExtensionSystem::Get(profile_)->extension_service(); |
+ service->NotifyExtensionEventRoutersOnListenerRemoved(event_name); |
} |
void EventRouter::AddLazyEventListener(const std::string& event_name, |