summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 3a02939..e452b67 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -19,7 +19,6 @@
#include "chrome/browser/debugger/debugger_host.h"
#include "chrome/browser/debugger/devtools_manager.h"
#include "chrome/browser/download/download_manager.h"
-#include "chrome/browser/extensions/extension.h"
#include "chrome/browser/find_bar.h"
#include "chrome/browser/find_bar_controller.h"
#include "chrome/browser/location_bar.h"
@@ -189,10 +188,6 @@ Browser::Browser(Type type, Profile* profile)
this,
NotificationType::SSL_VISIBLE_STATE_CHANGED,
NotificationService::AllSources());
- NotificationService::current()->AddObserver(
- this,
- NotificationType::EXTENSION_UNLOADED,
- NotificationService::AllSources());
InitCommandState();
BrowserList::AddBrowser(this);
@@ -238,10 +233,6 @@ Browser::~Browser() {
this,
NotificationType::SSL_VISIBLE_STATE_CHANGED,
NotificationService::AllSources());
- NotificationService::current()->RemoveObserver(
- this,
- NotificationType::EXTENSION_UNLOADED,
- NotificationService::AllSources());
if (profile_->IsOffTheRecord() &&
!BrowserList::IsOffTheRecordSessionActive()) {
@@ -2054,20 +2045,6 @@ void Browser::Observe(NotificationType type,
UpdateToolbar(false);
break;
- case NotificationType::EXTENSION_UNLOADED: {
- // Close any tabs from the unloaded extension.
- Extension* extension = Details<Extension>(details).ptr();
- for (int i = 0; i < tabstrip_model_.count(); i++) {
- TabContents* tc = tabstrip_model_.GetTabContentsAt(i);
- if (tc->GetURL().SchemeIs(chrome::kExtensionScheme) &&
- tc->GetURL().host() == extension->id()) {
- CloseTabContents(tc);
- return;
- }
- }
- break;
- }
-
default:
NOTREACHED() << "Got a notification we didn't register for.";
}