Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / sad_tab.cc
blob5f1778461590cd378403b8b0ad2ff6de045c3e98
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/sad_tab.h"
7 namespace chrome {
9 // static
10 bool SadTab::ShouldShow(base::TerminationStatus status) {
11 return (status == base::TERMINATION_STATUS_ABNORMAL_TERMINATION ||
12 status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED ||
13 #if defined(OS_CHROMEOS)
14 status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM ||
15 #endif
16 status == base::TERMINATION_STATUS_PROCESS_CRASHED);
19 } // namespace chrome