forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[aw] Fix screen portion percentage cast error
When passing the screen coverage percentage to AwContentsJni#updateOpenWebScreenArea(), a float value was cast to an int, which always produced zero. This change multiplies the float value by 100 to match the expectation for an integer percentage and adds a test that verifies that the screen portion histogram contains samples for a non-zero percentage bucket. Bug: 1122091 Change-Id: I592b2a72d6ceb80108d9dfe73d25d55164709a5a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2924108 Reviewed-by: Nate Fischer <ntfschr@chromium.org> Reviewed-by: Peter Conn <peconn@chromium.org> Commit-Queue: Oksana Zhuravlova <oksamyt@chromium.org> Cr-Commit-Position: refs/heads/master@{#893127}
- Loading branch information
Oksana Zhuravlova
authored and
Chromium LUCI CQ
committed
Jun 16, 2021
1 parent
629b5b1
commit f217b4c
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters