Follow updated UMA best practices in blink::HTMLMediaElement.
- Use updated kMaxValue convention for representing the histogram boundary. While it doesn't matter much here, not having a sentinel value is generally preferred (especially if the enum is used in switch statements). - Default to using the function instead of the macro. The macro is more performant, but the UMA recording paths here aren't on the critical path - Switch away from blink::EnumerationHistogram Bug: 742517, 1047547 Change-Id: Ibdcbb312dc1157d6284bdb0de8c9a3b2a591de62 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2032417Reviewed-by:Dave Tapuska <dtapuska@chromium.org> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#737888}
Showing
Please register or sign in to comment