summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authoryefim@chromium.org <yefim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-15 19:45:15 +0000
committeryefim@chromium.org <yefim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-15 19:45:15 +0000
commita8f9f13dfb4a5dafbf55dee3279ecfccae799c54 (patch)
tree72cbac215f71583a0d6744eb74b6e80fcc1b62f3 /ui
parent7b2429d29c848a1c28f66db18da349867c94b466 (diff)
downloadchromium_src-a8f9f13dfb4a5dafbf55dee3279ecfccae799c54.zip
chromium_src-a8f9f13dfb4a5dafbf55dee3279ecfccae799c54.tar.gz
chromium_src-a8f9f13dfb4a5dafbf55dee3279ecfccae799c54.tar.bz2
Fixed histogram macros to upload to UMA and renamed one histogram, as UMA dashboard expects names with a dot.
BUG=180420 Review URL: https://chromiumcodereview.appspot.com/12432025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188456 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/views/controls/menu/menu_runner.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/views/controls/menu/menu_runner.cc b/ui/views/controls/menu/menu_runner.cc
index d29e24c..af2165b 100644
--- a/ui/views/controls/menu/menu_runner.cc
+++ b/ui/views/controls/menu/menu_runner.cc
@@ -32,7 +32,7 @@ void RecordSelectedIndexes(const MenuItemView* menu_item) {
SubmenuView* submenu = parent->GetSubmenu();
for (int i = 0; i < submenu->GetMenuItemCount(); ++i) {
if (submenu->GetMenuItemAt(i) == menu_item) {
- HISTOGRAM_COUNTS_100("MenuSelection.Index", i);
+ UMA_HISTOGRAM_COUNTS_100("MenuSelection.Index", i);
break;
}
}
@@ -42,11 +42,11 @@ void RecordSelectedIndexes(const MenuItemView* menu_item) {
void RecordMenuStats(MenuItemView* result, base::TimeDelta time_elapsed) {
// Report if user made a selection.
- HISTOGRAM_BOOLEAN("MenuSelection", result != NULL);
+ UMA_HISTOGRAM_BOOLEAN("MenuSelection.Result", result != NULL);
if (result) {
// Report how much time it took to make a selection.
- HISTOGRAM_TIMES("MenuSelection.Time", time_elapsed);
+ UMA_HISTOGRAM_TIMES("MenuSelection.Time", time_elapsed);
RecordSelectedIndexes(result);
}
}