Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up redundant ShutdownCleanliness-related code.
Also, move the CHECK into CleanExitBeacon. There's no reason we can't use kStabilityExitedCleanly instead of UmaMetricsProperlyShutdown() in ChromeBrowserMainParts ::PostDestroyThreads(). The CHECK does, however, need to be moved to before the destruction of the browser process to access the kStabilityExitedCleanly pref. We update clean_shutdown_status_ in two places: * MetricsService::LogCleanShutdown(), in which kStabilityExitedCleanly is set to true and clean_shutdown_status_ to CLEANLY_SHUTDOWN * MetricsService::LogNeedForCleanShutdown(), in which kStabilityExitedCleanly is set to false and clean_shutdown_status_ to NEED_TO_SHUTDOWN We update kStabilityExitedCleanly in the two functions mentioned above and in two mobile-only functions. ShutdownCleanliness was not and is not used on iOS or Android, so it does not matter that OnAppEnterForeground() and MarkAppCleanShutdownAndCommit() update kStabilityExitedCleanly. The CHECK is not performed on iOS or Android. Bug: 1205645 Change-Id: Ica160674aabdeab20edc049eee8beeec7e8e1a7f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2872668 Commit-Queue: Caitlin Fischer <caitlinfischer@google.com> Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: Alexei Svitkine <asvitkine@chromium.org> Cr-Commit-Position: refs/heads/master@{#880577}
- Loading branch information
Caitlin Fischer
authored and
Chromium LUCI CQ
committed
May 7, 2021
1 parent
f4a207e
commit a0392a4
Showing
5 changed files
with
33 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters