Commit 6bab78ac authored by Gina Ko's avatar Gina Ko Committed by Commit Bot

Add two more enum values to RebootShlib::RebootSource

Bug: internal b/115289705
Change-Id: I849a3c28522d2d9bf15b7bfacd21cffe7530eb0a
Reviewed-on: https://chromium-review.googlesource.com/1232353Reviewed-by: default avatarSergey Volk <servolk@chromium.org>
Commit-Queue: Yi-Chun Gina Ko <yichunko@google.com>
Cr-Commit-Position: refs/heads/master@{#592281}
parent 862cf2e8
...@@ -58,6 +58,13 @@ class CHROMECAST_EXPORT RebootShlib { ...@@ -58,6 +58,13 @@ class CHROMECAST_EXPORT RebootShlib {
// Only if SetFdrForNextReboot() has been called must reboot to result // Only if SetFdrForNextReboot() has been called must reboot to result
// in an OTA update. // in an OTA update.
FDR = 8, FDR = 8,
// A reboot caused by hardware watchdog. This requires additional
// information from the SoC. Otherwise, it can be categorized as forced.
HW_WATCHDOG = 9,
// A reboot caused by other software reason that is not listed above.
SW_OTHER = 10,
}; };
// Initializes any platform-specific reboot systems. // Initializes any platform-specific reboot systems.
......
...@@ -37,6 +37,8 @@ bool RebootUtil::IsValidRebootSource(RebootShlib::RebootSource reboot_source) { ...@@ -37,6 +37,8 @@ bool RebootUtil::IsValidRebootSource(RebootShlib::RebootSource reboot_source) {
case RebootShlib::RebootSource::PROCESS_MANAGER: case RebootShlib::RebootSource::PROCESS_MANAGER:
case RebootShlib::RebootSource::CRASH_UPLOADER: case RebootShlib::RebootSource::CRASH_UPLOADER:
case RebootShlib::RebootSource::FDR: case RebootShlib::RebootSource::FDR:
case RebootShlib::RebootSource::HW_WATCHDOG:
case RebootShlib::RebootSource::SW_OTHER:
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