Fix overflow issue in blink::AnchorElementMetrics::RecordMetrics.
Detail: In order to get finer resolution when recording metrics, the program multiples the area/distance metrics by 100 before sending to UMA, which can cause overflow. Fix: For area metric, the result is limited to 1.0; for distance metric, the result is limited to the maximum expected value (10000) by UMA before sending. Bug: 853435 Change-Id: Ie8d9751c86bd64f38bd79c3e12d502f71a551522 Reviewed-on: https://chromium-review.googlesource.com/1105506 Commit-Queue: Lu Chen <chelu@chromium.org> Reviewed-by:Kouhei Ueno <kouhei@chromium.org> Reviewed-by:
Ryan Sturm <ryansturm@chromium.org> Reviewed-by:
Tarun Bansal <tbansal@chromium.org> Cr-Commit-Position: refs/heads/master@{#569390}
Showing
Please register or sign in to comment