Add TS_PROCESS_OOM termination status (issue #2510)
This commit is contained in:
parent
bb61775b61
commit
3a91ccd940
|
@ -789,6 +789,11 @@ typedef enum {
|
|||
// Segmentation fault.
|
||||
///
|
||||
TS_PROCESS_CRASHED,
|
||||
|
||||
///
|
||||
// Out of memory. Some platforms may use TS_PROCESS_CRASHED instead.
|
||||
///
|
||||
TS_PROCESS_OOM,
|
||||
} cef_termination_status_t;
|
||||
|
||||
///
|
||||
|
|
|
@ -2781,6 +2781,8 @@ void CefBrowserHostImpl::RenderProcessGone(base::TerminationStatus status) {
|
|||
ts = TS_PROCESS_WAS_KILLED;
|
||||
else if (status == base::TERMINATION_STATUS_PROCESS_CRASHED)
|
||||
ts = TS_PROCESS_CRASHED;
|
||||
else if (status == base::TERMINATION_STATUS_OOM)
|
||||
ts = TS_PROCESS_OOM;
|
||||
else if (status != base::TERMINATION_STATUS_ABNORMAL_TERMINATION)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue