Index: chrome/browser/tab_contents/tab_contents_view_gtk.cc |
diff --git a/chrome/browser/tab_contents/tab_contents_view_gtk.cc b/chrome/browser/tab_contents/tab_contents_view_gtk.cc |
index dbd2797f2d1191749131cd199d5b50f37e7269a6..4563251dc0e8abee6e3d48421e13f3e013abf09d 100644 |
--- a/chrome/browser/tab_contents/tab_contents_view_gtk.cc |
+++ b/chrome/browser/tab_contents/tab_contents_view_gtk.cc |
@@ -203,9 +203,13 @@ void TabContentsViewGtk::SetPageTitle(const std::wstring& title) { |
gdk_window_set_title(content_view->window, WideToUTF8(title).c_str()); |
} |
-void TabContentsViewGtk::OnTabCrashed() { |
+void TabContentsViewGtk::OnTabCrashed(base::TerminationStatus status, |
+ int error_code) { |
if (tab_contents() != NULL && !sad_tab_.get()) { |
- sad_tab_.reset(new SadTabGtk(tab_contents())); |
+ sad_tab_.reset(new SadTabGtk( |
+ tab_contents(), |
+ status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED ? |
+ SadTabGtk::KILLED : SadTabGtk::CRASHED)); |
InsertIntoContentArea(sad_tab_->widget()); |
gtk_widget_show(sad_tab_->widget()); |
} |