Index: chrome/browser/ui/browser.cc |
=================================================================== |
--- chrome/browser/ui/browser.cc (revision 69996) |
+++ chrome/browser/ui/browser.cc (working copy) |
@@ -213,8 +213,6 @@ |
NotificationService::AllSources()); |
registrar_.Add(this, NotificationType::EXTENSION_UNLOADED, |
NotificationService::AllSources()); |
- registrar_.Add(this, NotificationType::EXTENSION_UNLOADED_DISABLED, |
- NotificationService::AllSources()); |
registrar_.Add(this, NotificationType::EXTENSION_PROCESS_TERMINATED, |
NotificationService::AllSources()); |
registrar_.Add(this, NotificationType::BROWSER_THEME_CHANGED, |
@@ -3212,12 +3210,12 @@ |
break; |
} |
- case NotificationType::EXTENSION_UNLOADED: |
- case NotificationType::EXTENSION_UNLOADED_DISABLED: { |
+ case NotificationType::EXTENSION_UNLOADED: { |
window()->GetLocationBar()->UpdatePageActions(); |
// Close any tabs from the unloaded extension. |
- const Extension* extension = Details<const Extension>(details).ptr(); |
+ const Extension* extension = |
+ Details<UnloadedExtensionInfo>(details)->extension; |
TabStripModel* model = tab_handler_->GetTabStripModel(); |
for (int i = model->count() - 1; i >= 0; --i) { |
TabContents* tc = model->GetTabContentsAt(i)->tab_contents(); |