summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_command_controller.cc
diff options
context:
space:
mode:
authorskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-01 13:35:17 +0000
committerskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-01 13:35:17 +0000
commit7c43e7fed19a47bf116f402d19468d359c20d3be (patch)
treec9d0817707c4289bc7bbd387f21c969fdf78fe23 /chrome/browser/ui/browser_command_controller.cc
parenta19c652e7e6671a6d0b41ce76ab14c38a4a540f1 (diff)
downloadchromium_src-7c43e7fed19a47bf116f402d19468d359c20d3be.zip
chromium_src-7c43e7fed19a47bf116f402d19468d359c20d3be.tar.gz
chromium_src-7c43e7fed19a47bf116f402d19468d359c20d3be.tar.bz2
Adding UMA statistics for multi profile
We are capturing: - The used multi profile mode - Window teleports (and their type of transfer) BUG=311828 TEST=visual using chrome://histograms page Review URL: https://codereview.chromium.org/52713008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_command_controller.cc')
-rw-r--r--chrome/browser/ui/browser_command_controller.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index 50a870d..c6a5ed3 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -57,6 +57,7 @@
#endif
#if defined(OS_CHROMEOS)
+#include "ash/multi_profile_uma.h"
#include "ash/session_state_delegate.h"
#include "ash/shell.h"
#include "chrome/browser/ui/ash/multi_user_window_manager.h"
@@ -462,6 +463,8 @@ void BrowserCommandController::ExecuteCommandWithDisposition(
#if defined(OS_CHROMEOS)
case IDC_VISIT_DESKTOP_OF_LRU_USER_2:
case IDC_VISIT_DESKTOP_OF_LRU_USER_3: {
+ ash::MultiProfileUMA::RecordTeleportAction(
+ ash::MultiProfileUMA::TELEPORT_WINDOW_CAPTION_MENU);
// When running the multi user mode on Chrome OS, windows can "visit"
// another user's desktop.
const std::string& user_id =