Fix crash in reportCompleteNotificationAction
reportCompleteNotificationAction can be called without native, which resulted in crashes. Changed to use CachedMetrics to only report when native is loaded. I manually tested that this no longer crashes by killing the chrome process before triggering the intent. Note that if Chrome is killed before native is loaded, the metric won't be reported. Bug: 930307 Change-Id: I88728029ae1c09a9197de9c1eb3c6d71086b99d6 Reviewed-on: https://chromium-review.googlesource.com/c/1461332Reviewed-by:Carlos Knippschild <carlosk@chromium.org> Commit-Queue: Dan H <harringtond@google.com> Cr-Commit-Position: refs/heads/master@{#630541}
Showing
Please register or sign in to comment