diff options
author | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-04 04:23:31 +0000 |
---|---|---|
committer | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-04 04:23:31 +0000 |
commit | b47fae35e05cf17fa57ac58cd596820f873ccd21 (patch) | |
tree | 616e797d395658528c8dc7a8bb825f03e80d2aed /ash | |
parent | 5a7b61d6e9086779762d3adc4cde734d827c041b (diff) | |
download | chromium_src-b47fae35e05cf17fa57ac58cd596820f873ccd21.zip chromium_src-b47fae35e05cf17fa57ac58cd596820f873ccd21.tar.gz chromium_src-b47fae35e05cf17fa57ac58cd596820f873ccd21.tar.bz2 |
Bumping up the limit of users to 10 and adding UMA stats for user count
Several people asked to increase the upper limit of simultaneous users for a session. This CL is allowing to add up to 10 users at the same time - recording the actual number in UMA stats so that we can see what makes sense.
BUG=321739
TEST=visual
Review URL: https://codereview.chromium.org/88983002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238562 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r-- | ash/multi_profile_uma.cc | 5 | ||||
-rw-r--r-- | ash/multi_profile_uma.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ash/multi_profile_uma.cc b/ash/multi_profile_uma.cc index f6d9840..2dd4049 100644 --- a/ash/multi_profile_uma.cc +++ b/ash/multi_profile_uma.cc @@ -36,4 +36,9 @@ void MultiProfileUMA::RecordTeleportAction(TeleportWindowAction action) { NUM_TELEPORT_WINDOW_ACTIONS); } +// static +void MultiProfileUMA::RecordUserCount(int number_of_users) { + UMA_HISTOGRAM_COUNTS_100("MultiProfile.UsersPerSession", number_of_users); +} + } // namespace ash diff --git a/ash/multi_profile_uma.h b/ash/multi_profile_uma.h index 1c70482..a39ed81 100644 --- a/ash/multi_profile_uma.h +++ b/ash/multi_profile_uma.h @@ -55,6 +55,9 @@ class ASH_EXPORT MultiProfileUMA { // Record the way and how many times a window got teleported to another desk. static void RecordTeleportAction(TeleportWindowAction action); + // Record number of users joined into a session. Called upon logout. + static void RecordUserCount(int number_of_users); + private: DISALLOW_IMPLICIT_CONSTRUCTORS(MultiProfileUMA); }; |