diff options
author | miletus@chromium.org <miletus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-04 23:56:55 +0000 |
---|---|---|
committer | miletus@chromium.org <miletus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-04 23:56:55 +0000 |
commit | 9f42dec34a9b5c2360eda748dc9a975108098480 (patch) | |
tree | 68de3426261b8102d8fa09e11bf32d266b6b4885 /base | |
parent | 4de0eefcb0c03250ec287a9cfac2c503beee5ac1 (diff) | |
download | chromium_src-9f42dec34a9b5c2360eda748dc9a975108098480.zip chromium_src-9f42dec34a9b5c2360eda748dc9a975108098480.tar.gz chromium_src-9f42dec34a9b5c2360eda748dc9a975108098480.tar.bz2 |
Make sure bucket_size_x/y is not 0
If the bounds.width()/height() is smaller than the kBucketCountForLocation = 100,
then the bucket_size_x/y will be 0. And the following call to
UMA_HISTOGRAM_CUSTOM_COUNTS("Ash.TouchPositionX",
position.x() / bucket_size_x, ...)
could cause division by zero.
BUG=None
TEST=UMA for touch does not crash for window size smaller than 100x100
Review URL: https://chromiumcodereview.appspot.com/13455003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
0 files changed, 0 insertions, 0 deletions