diff options
author | harrym@chromium.org <harrym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 08:10:18 +0000 |
---|---|---|
committer | harrym@chromium.org <harrym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 08:10:18 +0000 |
commit | 5d2ea361990ac129fd0385c4c85efd17917edfc0 (patch) | |
tree | 028f0b44d7bda24c341e4bd65e58c2b6b88a1967 /ash/shelf/shelf_alignment_menu.cc | |
parent | 7f635540943693cca1748e6f7d7345269befac59 (diff) | |
download | chromium_src-5d2ea361990ac129fd0385c4c85efd17917edfc0.zip chromium_src-5d2ea361990ac129fd0385c4c85efd17917edfc0.tar.gz chromium_src-5d2ea361990ac129fd0385c4c85efd17917edfc0.tar.bz2 |
Adding UMA metric tracking to the status are menu and related tray views to track usage of the menu's.
BUG=297046
Review URL: https://codereview.chromium.org/73583003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240537 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shelf/shelf_alignment_menu.cc')
-rw-r--r-- | ash/shelf/shelf_alignment_menu.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ash/shelf/shelf_alignment_menu.cc b/ash/shelf/shelf_alignment_menu.cc index d6cd384..3f77da1 100644 --- a/ash/shelf/shelf_alignment_menu.cc +++ b/ash/shelf/shelf_alignment_menu.cc @@ -4,10 +4,10 @@ #include "ash/shelf/shelf_alignment_menu.h" +#include "ash/metrics/user_metrics_recorder.h" #include "ash/shelf/shelf_layout_manager.h" #include "ash/shelf/shelf_types.h" #include "ash/shell.h" -#include "ash/shell_delegate.h" #include "grit/ash_strings.h" #include "ui/aura/window.h" #include "ui/base/l10n/l10n_util.h" @@ -55,20 +55,20 @@ bool ShelfAlignmentMenu::GetAcceleratorForCommandId( void ShelfAlignmentMenu::ExecuteCommand(int command_id, int event_flags) { switch (static_cast<MenuItem>(command_id)) { case MENU_ALIGN_LEFT: - Shell::GetInstance()->delegate()->RecordUserMetricsAction( - UMA_SHELF_ALIGNMENT_SET_LEFT); + Shell::GetInstance()->metrics()-> + RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_LEFT); Shell::GetInstance()->SetShelfAlignment(SHELF_ALIGNMENT_LEFT, root_window_); break; case MENU_ALIGN_BOTTOM: - Shell::GetInstance()->delegate()->RecordUserMetricsAction( - UMA_SHELF_ALIGNMENT_SET_BOTTOM); + Shell::GetInstance()->metrics()-> + RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_BOTTOM); Shell::GetInstance()->SetShelfAlignment(SHELF_ALIGNMENT_BOTTOM, root_window_); break; case MENU_ALIGN_RIGHT: - Shell::GetInstance()->delegate()->RecordUserMetricsAction( - UMA_SHELF_ALIGNMENT_SET_RIGHT); + Shell::GetInstance()->metrics()-> + RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_RIGHT); Shell::GetInstance()->SetShelfAlignment(SHELF_ALIGNMENT_RIGHT, root_window_); break; |