Commit f7d78211 authored by timvolodine's avatar timvolodine Committed by Commit bot

Fix number of buckets in Tabs.ScrubDistance UMA histogram.

Fix the number of buckets in Tabs.ScrubDistance. Currently the value
19 falls in the bucket with value 18 which is confusing. Results can be
checked on uma.googleplex.com.

BUG=

Review URL: https://codereview.chromium.org/551893002

Cr-Commit-Position: refs/heads/master@{#296957}
parent 9158797a
...@@ -274,7 +274,7 @@ void TabScrubber::FinishScrub(bool activate) { ...@@ -274,7 +274,7 @@ void TabScrubber::FinishScrub(bool activate) {
int distance = int distance =
std::abs( std::abs(
highlighted_tab_ - browser_->tab_strip_model()->active_index()); highlighted_tab_ - browser_->tab_strip_model()->active_index());
UMA_HISTOGRAM_CUSTOM_COUNTS("Tabs.ScrubDistance", distance, 0, 20, 20); UMA_HISTOGRAM_CUSTOM_COUNTS("Tabs.ScrubDistance", distance, 0, 20, 21);
browser_->tab_strip_model()->ActivateTabAt(highlighted_tab_, true); browser_->tab_strip_model()->ActivateTabAt(highlighted_tab_, true);
} }
tab_strip->RemoveObserver(this); tab_strip->RemoveObserver(this);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment