summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authorkuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-03 16:00:46 +0000
committerkuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-03 16:00:46 +0000
commit65ed01e42abd1d73fd7eb520908bdff1b50c21fd (patch)
tree21ece79f36e545eb9c0dcb86d6018d5f4cc7b562 /chrome/browser/tab_contents
parent120be5d1b6455f4a97eaf560d12f0f78c8b1a107 (diff)
downloadchromium_src-65ed01e42abd1d73fd7eb520908bdff1b50c21fd.zip
chromium_src-65ed01e42abd1d73fd7eb520908bdff1b50c21fd.tar.gz
chromium_src-65ed01e42abd1d73fd7eb520908bdff1b50c21fd.tar.bz2
linux: use TabContents to launch url for link in crash page
- used to use BrowserList::GetLastActive but that's null in chrome-frame release. - TabContents is passed into constructor and only if it's non-null is the link created. BUG=29034 TEST=verify that crash per bug report doesn't happen. Review URL: http://codereview.chromium.org/466016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33684 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/tab_contents_view_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_view_gtk.cc b/chrome/browser/tab_contents/tab_contents_view_gtk.cc
index 3916640..54ee481 100644
--- a/chrome/browser/tab_contents/tab_contents_view_gtk.cc
+++ b/chrome/browser/tab_contents/tab_contents_view_gtk.cc
@@ -260,8 +260,8 @@ void TabContentsViewGtk::SetPageTitle(const std::wstring& title) {
}
void TabContentsViewGtk::OnTabCrashed() {
- if (!sad_tab_.get()) {
- sad_tab_.reset(new SadTabGtk);
+ if (tab_contents() != NULL && !sad_tab_.get()) {
+ sad_tab_.reset(new SadTabGtk(tab_contents()));
InsertIntoContentArea(sad_tab_->widget());
gtk_widget_show(sad_tab_->widget());
}