Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1492)

Unified Diff: content/browser/tab_contents/tab_contents_delegate.cc

Issue 8921032: Adds some debugging code in hopes of identifying a crasher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« no previous file with comments | « chrome/browser/ui/views/tabs/default_tab_drag_controller.cc ('k') | content/public/browser/notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698