Index: content/browser/tab_contents/tab_contents_delegate.cc |
diff --git a/content/browser/tab_contents/tab_contents_delegate.cc b/content/browser/tab_contents/tab_contents_delegate.cc |
index f88e99ebfbbbefb9a19cd23c51a2e0b67bdae000..1bb95f2036a648b0599e82ae00b2806b1a91800a 100644 |
--- a/content/browser/tab_contents/tab_contents_delegate.cc |
+++ b/content/browser/tab_contents/tab_contents_delegate.cc |
@@ -10,6 +10,8 @@ |
#include "content/browser/javascript_dialogs.h" |
#include "content/browser/tab_contents/tab_contents.h" |
#include "content/public/browser/intents_host.h" |
+#include "content/public/browser/notification_service.h" |
+#include "content/public/browser/notification_types.h" |
#include "content/public/common/url_constants.h" |
#include "ui/gfx/rect.h" |
#include "webkit/glue/web_intent_data.h" |
@@ -337,6 +339,10 @@ TabContentsDelegate::~TabContentsDelegate() { |
tab_contents->set_delegate(NULL); |
} |
DCHECK(attached_contents_.empty()); |
+ content::NotificationService::current()->Notify( |
+ content::NOTIFICATION_TAB_CONTENTS_DELEGATE_DESTROYED, |
+ content::Source<TabContentsDelegate>(this), |
+ content::NotificationService::NoDetails()); |
} |
void TabContentsDelegate::Attach(TabContents* tab_contents) { |