Index: chrome/browser/extensions/extension_event_router.cc |
=================================================================== |
--- chrome/browser/extensions/extension_event_router.cc (revision 91968) |
+++ chrome/browser/extensions/extension_event_router.cc (working copy) |
@@ -65,9 +65,9 @@ |
ExtensionEventRouter::ExtensionEventRouter(Profile* profile) |
: profile_(profile), |
extension_devtools_manager_(profile->GetExtensionDevToolsManager()) { |
- registrar_.Add(this, NotificationType::RENDERER_PROCESS_TERMINATED, |
+ registrar_.Add(this, content::NOTIFICATION_RENDERER_PROCESS_TERMINATED, |
NotificationService::AllSources()); |
- registrar_.Add(this, NotificationType::RENDERER_PROCESS_CLOSED, |
+ registrar_.Add(this, content::NOTIFICATION_RENDERER_PROCESS_CLOSED, |
NotificationService::AllSources()); |
} |
@@ -221,12 +221,12 @@ |
} |
} |
-void ExtensionEventRouter::Observe(NotificationType type, |
+void ExtensionEventRouter::Observe(int type, |
const NotificationSource& source, |
const NotificationDetails& details) { |
- switch (type.value) { |
- case NotificationType::RENDERER_PROCESS_TERMINATED: |
- case NotificationType::RENDERER_PROCESS_CLOSED: { |
+ switch (type) { |
+ case content::NOTIFICATION_RENDERER_PROCESS_TERMINATED: |
+ case content::NOTIFICATION_RENDERER_PROCESS_CLOSED: { |
RenderProcessHost* renderer = Source<RenderProcessHost>(source).ptr(); |
// Remove all event listeners associated with this renderer |
for (ListenerMap::iterator it = listeners_.begin(); |