summaryrefslogtreecommitdiffstats
path: root/ash/system
diff options
context:
space:
mode:
authortengs@chromium.org <tengs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-02 19:41:43 +0000
committertengs@chromium.org <tengs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-02 19:41:43 +0000
commit377958792b16099c8087c2acc254f41bfacadcfc (patch)
tree5b1c34a0cbaefc6fae5d2696630f3f94567c9c29 /ash/system
parent164e7a7f81a837e83900c465d00c2a8f9c33ee37 (diff)
downloadchromium_src-377958792b16099c8087c2acc254f41bfacadcfc.zip
chromium_src-377958792b16099c8087c2acc254f41bfacadcfc.tar.gz
chromium_src-377958792b16099c8087c2acc254f41bfacadcfc.tar.bz2
Log UMA metrics for multiprofile actions.
BUG=297184 Review URL: https://codereview.chromium.org/25098009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226527 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system')
-rw-r--r--ash/system/user/tray_user.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ash/system/user/tray_user.cc b/ash/system/user/tray_user.cc
index e832727..c11890a 100644
--- a/ash/system/user/tray_user.cc
+++ b/ash/system/user/tray_user.cc
@@ -9,6 +9,7 @@
#include <vector>
#include "ash/ash_switches.h"
+#include "ash/multi_profile_uma.h"
#include "ash/popup_message.h"
#include "ash/root_window_controller.h"
#include "ash/session_state_delegate.h"
@@ -750,6 +751,8 @@ void UserView::ButtonPressed(views::Button* sender, const ui::Event& event) {
} else {
ash::SessionStateDelegate* delegate =
ash::Shell::GetInstance()->session_state_delegate();
+ MultiProfileUMA::RecordSwitchActiveUser(
+ MultiProfileUMA::SWITCH_ACTIVE_USER_BY_TRAY);
delegate->SwitchActiveUser(delegate->GetUserEmail(multiprofile_index_));
// Since the user list is about to change the system menu should get
// closed.
@@ -758,6 +761,7 @@ void UserView::ButtonPressed(views::Button* sender, const ui::Event& event) {
} else if (add_menu_option_.get() &&
sender == add_menu_option_->GetContentsView()) {
// Let the user add another account to the session.
+ MultiProfileUMA::RecordSigninUser(MultiProfileUMA::SIGNIN_USER_BY_TRAY);
ash::Shell::GetInstance()->system_tray_delegate()->ShowUserLogin();
} else {
NOTREACHED();