Chromium Code Reviews| Index: chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc |
| diff --git a/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc b/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc |
| index 5abdc073bb32204328473d51ff9c7042a9f5cf69..f8827e79b786db56af14f61b73838bdc50a8d779 100644 |
| --- a/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc |
| +++ b/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc |
| @@ -130,11 +130,15 @@ void TabContentsViewViews::SetPageTitle(const std::wstring& title) { |
| // TODO(anicolao): figure out if there's anything useful to do here |
| } |
| -void TabContentsViewViews::OnTabCrashed() { |
| +void TabContentsViewViews::OnTabCrashed(base::TerminationStatus status, |
| + int /* error_code */) { |
| if (sad_tab_ != NULL) |
| return; |
| - sad_tab_.reset(new SadTabView(tab_contents())); |
| + sad_tab_.reset(new SadTabView( |
| + tab_contents(), |
| + status == TERMINATION_STATUS_PROCESS_WAS_KILLED ? |
| + SadTabView::KILLED : SadTabView::CRASHED)); |
|
brettw
2011/01/12 07:22:58
I'd probably indent this 2 more spaces.
|
| RemoveAllChildViews(true); |
| AddChildView(sad_tab_.get()); |
| Layout(); |