summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/sad_tab.cc
blob: 5f1778461590cd378403b8b0ad2ff6de045c3e98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/sad_tab.h"

namespace chrome {

// static
bool SadTab::ShouldShow(base::TerminationStatus status) {
  return (status == base::TERMINATION_STATUS_ABNORMAL_TERMINATION ||
          status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED ||
#if defined(OS_CHROMEOS)
          status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM ||
#endif
          status == base::TERMINATION_STATUS_PROCESS_CRASHED);
}

}  // namespace chrome