Explicit values for UMA enums in LoginAuthRecorder
1. Provide explicit values for those enums in the LoginAuthRecorder class that are logged as UMA metric values. This makes it more clear that those values shouldn't be renumbered, and makes it easier to find and verify the correspondence between the enum values in the C++ code and the <enum> values in enums.xml. 2. Use new-style UMA utils that deduct the enum size automatically based on the "kMaxValue" item. Bug: none Change-Id: I853e5cae5eaeb39765d02b4256af59b2d2c2eb93 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1724087 Commit-Queue: Maksim Ivanov <emaxx@chromium.org> Reviewed-by:Toni Baržić <tbarzic@chromium.org> Cr-Commit-Position: refs/heads/master@{#682919}
Showing
Please register or sign in to comment