Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: chrome/browser/ui/sad_tab.cc

Issue 2172013002: Wire up OOM exception to the sad tab page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@memory2
Patch Set: increment outside macro Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/process/kill_win.cc ('k') | chrome/browser/ui/sad_tab_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « base/process/kill_win.cc ('k') | chrome/browser/ui/sad_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698