12a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved.
22a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
32a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// found in the LICENSE file.
42a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
52a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#include "chrome/browser/ui/sad_tab.h"
62a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
72a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)namespace chrome {
82a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// static
102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)bool SadTab::ShouldShow(base::TerminationStatus status) {
112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  return (status == base::TERMINATION_STATUS_ABNORMAL_TERMINATION ||
122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)          status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED ||
132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)          status == base::TERMINATION_STATUS_PROCESS_CRASHED);
142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}
152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}  // namespace chrome
17