Commit 620afbd9 authored by Eugene But's avatar Eugene But Committed by Commit Bot

[ios] Do not log Stability.iOS.UTE.* if shutdown type is not UTE

Bug: None
Change-Id: I88ce75f25fc62b2fefb56f0b9b82a49624141f67
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2255019
Commit-Queue: Eugene But <eugenebut@chromium.org>
Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Reviewed-by: default avatarMike Dougherty <michaeldo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781467}
parent 5955d1c4
......@@ -155,6 +155,13 @@ void MobileSessionShutdownMetricsProvider::ProvidePreviousSessionData(
// Log metrics to improve categorization of crashes.
LogApplicationBackgroundedTime(session_info.sessionEndTime);
if (shutdown_type != SHUTDOWN_IN_FOREGROUND_NO_CRASH_LOG_NO_MEMORY_WARNING &&
shutdown_type !=
SHUTDOWN_IN_FOREGROUND_NO_CRASH_LOG_WITH_MEMORY_WARNING) {
// Log UTE metrics only if the crash was classified as a UTE.
return;
}
if (session_info.deviceBatteryState == DeviceBatteryState::kUnplugged) {
LogBatteryCharge(session_info.deviceBatteryLevel);
}
......
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