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
......@@ -51,13 +51,20 @@ class CHROMECAST_EXPORT RebootShlib {
// detected.
CRASH_UPLOADER = 7,
// A reboot caused by an FDR related source.
// A reboot caused by an FDR related source.
// Note: Calling RebootNow(RebootSource::FDR) does not imply that
// an FDR must happen upon reboot; it is simply an indicator that a reboot
// request is coming from an FDR-related source.
// Only if SetFdrForNextReboot() has been called must reboot to result
// in an OTA update.
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.
......
......@@ -37,6 +37,8 @@ bool RebootUtil::IsValidRebootSource(RebootShlib::RebootSource reboot_source) {
case RebootShlib::RebootSource::PROCESS_MANAGER:
case RebootShlib::RebootSource::CRASH_UPLOADER:
case RebootShlib::RebootSource::FDR:
case RebootShlib::RebootSource::HW_WATCHDOG:
case RebootShlib::RebootSource::SW_OTHER:
return true;
default:
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