Index: chrome/browser/ui/views/tab_contents/tab_contents_view_gtk.cc |
diff --git a/chrome/browser/ui/views/tab_contents/tab_contents_view_gtk.cc b/chrome/browser/ui/views/tab_contents/tab_contents_view_gtk.cc |
index c65198a462ac33f47d64d403f7ce8edcc315e223..7aa9d1ec209dc6088489dd7bcd0af0e630657920 100644 |
--- a/chrome/browser/ui/views/tab_contents/tab_contents_view_gtk.cc |
+++ b/chrome/browser/ui/views/tab_contents/tab_contents_view_gtk.cc |
@@ -398,15 +398,13 @@ void TabContentsViewGtk::OnSizeAllocate(GtkWidget* widget, |
gboolean TabContentsViewGtk::OnPaint(GtkWidget* widget, GdkEventExpose* event) { |
if (tab_contents()->render_view_host() && |
!tab_contents()->render_view_host()->IsRenderViewLive()) { |
- if (sad_tab_ == NULL) { |
- base::TerminationStatus status = |
- tab_contents()->render_view_host()->render_view_termination_status(); |
- SadTabView::Kind kind = |
- status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED ? |
- SadTabView::KILLED : SadTabView::CRASHED; |
- sad_tab_ = new SadTabView(tab_contents(), kind); |
- SetContentsView(sad_tab_); |
- } |
+ base::TerminationStatus status = |
+ tab_contents()->render_view_host()->render_view_termination_status(); |
+ SadTabView::Kind kind = |
+ status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED ? |
+ SadTabView::KILLED : SadTabView::CRASHED; |
+ sad_tab_ = new SadTabView(tab_contents(), kind); |
+ SetContentsView(sad_tab_); |
gfx::Rect bounds; |
GetBounds(&bounds, true); |
sad_tab_->SetBounds(gfx::Rect(0, 0, bounds.width(), bounds.height())); |