OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "chrome/browser/ui/sad_tab.h" | 6 #include "chrome/browser/ui/sad_tab.h" |
7 | 7 |
8 namespace chrome { | 8 namespace chrome { |
9 | 9 |
10 // static | 10 // static |
11 bool SadTab::ShouldShow(base::TerminationStatus status) { | 11 bool SadTab::ShouldShow(base::TerminationStatus status) { |
12 return (status == base::TERMINATION_STATUS_ABNORMAL_TERMINATION || | 12 return (status == base::TERMINATION_STATUS_ABNORMAL_TERMINATION || |
13 status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED || | 13 status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED || |
14 #if defined(OS_CHROMEOS) | 14 #if defined(OS_CHROMEOS) |
15 status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM || | 15 status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM || |
16 #endif | 16 #endif |
17 status == base::TERMINATION_STATUS_PROCESS_CRASHED); | 17 status == base::TERMINATION_STATUS_PROCESS_CRASHED || |
| 18 status == base::TERMINATION_STATUS_OOM); |
18 } | 19 } |
19 | 20 |
20 } // namespace chrome | 21 } // namespace chrome |
OLD | NEW |