Don't log PasswordProtectionRequest metrics on shutdown
When the PasswordProtectionService is destroyed, we cancel all pending PasswordProtectionRequests from the destructor. This leads to pure virtual calls, since the derived ChromePasswordProtectionService has been destroyed. So don't log metrics in this situation, since we can't do so accurately. CANCELED outcomes are currently 0.0002% of outcomes, so I don't think the loss of histogram data is important here. Bug: 957019 Change-Id: Icbadaefc4802c177932375c7a5e638358e834ac5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1585985Reviewed-by:Varun Khaneja <vakh@chromium.org> Commit-Queue: Daniel Rubery <drubery@chromium.org> Cr-Commit-Position: refs/heads/master@{#654607}
Showing
Please register or sign in to comment