Commit 3b96cbf7 authored by Forest Fraser's avatar Forest Fraser Committed by Commit Bot

[Chromecast] Add REPEATED_OOM as reboot reason.

Bug: b/149108108
Test: Build
Change-Id: I59f91b0d042f4d74f16192cd1d693ddcdec53426
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2076700Reviewed-by: default avatarSergey Volk <servolk@chromium.org>
Reviewed-by: default avatarLuke Halliwell (slow) <halliwell@chromium.org>
Reviewed-by: default avatarYuchen Liu <yucliu@chromium.org>
Commit-Queue: Forest Fraser <ffraser@google.com>
Cr-Commit-Position: refs/heads/master@{#744865}
parent d0ea8017
...@@ -72,6 +72,9 @@ class CHROMECAST_EXPORT RebootShlib { ...@@ -72,6 +72,9 @@ class CHROMECAST_EXPORT RebootShlib {
// The device got into a state such that it needs to regenerate the cloud // The device got into a state such that it needs to regenerate the cloud
// device id. // device id.
REGENERATE_CLOUD_ID = 12, REGENERATE_CLOUD_ID = 12,
// A reboot is triggered due to successive OOM events.
REPEATED_OOM = 13,
}; };
// Initializes any platform-specific reboot systems. // Initializes any platform-specific reboot systems.
......
...@@ -41,6 +41,7 @@ bool RebootUtil::IsValidRebootSource(RebootShlib::RebootSource reboot_source) { ...@@ -41,6 +41,7 @@ bool RebootUtil::IsValidRebootSource(RebootShlib::RebootSource reboot_source) {
case RebootShlib::RebootSource::SW_OTHER: case RebootShlib::RebootSource::SW_OTHER:
case RebootShlib::RebootSource::OVERHEAT: case RebootShlib::RebootSource::OVERHEAT:
case RebootShlib::RebootSource::REGENERATE_CLOUD_ID: case RebootShlib::RebootSource::REGENERATE_CLOUD_ID:
case RebootShlib::RebootSource::REPEATED_OOM:
return true; return true;
default: default:
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment