| Index: chrome/browser/tab_contents/tab_contents_view_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/tab_contents/tab_contents_view_gtk.cc (revision 33646)
|
| +++ chrome/browser/tab_contents/tab_contents_view_gtk.cc (working copy)
|
| @@ -260,8 +260,8 @@
|
| }
|
|
|
| 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());
|
| }
|
|
|