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

Unified Diff: chrome/browser/ui/sad_tab_helper.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/sad_tab.cc ('k') | chrome/browser/ui/sad_tab_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/sad_tab_helper.cc
diff --git a/chrome/browser/ui/sad_tab_helper.cc b/chrome/browser/ui/sad_tab_helper.cc
index 4044af73fc22a0ce10b370bd6d59784e4f622692..bc409bcd051b6945fae9b17589a88b1d3006eb83 100644
--- a/chrome/browser/ui/sad_tab_helper.cc
+++ b/chrome/browser/ui/sad_tab_helper.cc
@@ -24,6 +24,8 @@ chrome::SadTabKind SadTabKindFromTerminationStatus(
case base::TERMINATION_STATUS_PROCESS_WAS_KILLED:
case base::TERMINATION_STATUS_LAUNCH_FAILED:
return chrome::SAD_TAB_KIND_KILLED;
+ case base::TERMINATION_STATUS_OOM:
+ return chrome::SAD_TAB_KIND_OOM;
default:
return chrome::SAD_TAB_KIND_CRASHED;
}
« no previous file with comments | « chrome/browser/ui/sad_tab.cc ('k') | chrome/browser/ui/sad_tab_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698