Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1273)

Unified Diff: chrome/browser/chromeos/login/user_manager_impl.cc

Issue 208813002: Merge 255865 "Changing the UsersPerSession UMA metric to count r..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1847/src/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/multi_profile_uma.cc ('k') | chrome/browser/lifetime/application_lifetime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user_manager_impl.cc
===================================================================
--- chrome/browser/chromeos/login/user_manager_impl.cc (revision 258628)
+++ chrome/browser/chromeos/login/user_manager_impl.cc (working copy)
@@ -7,6 +7,7 @@
#include <cstddef>
#include <set>
+#include "ash/multi_profile_uma.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
@@ -2042,6 +2043,13 @@
}
void UserManagerImpl::UpdateNumberOfUsers() {
+ size_t users = GetLoggedInUsers().size();
+ if (users) {
+ // Write the user number as UMA stat when a multi user session is possible.
+ if ((users + GetUsersAdmittedForMultiProfile().size()) > 1)
+ ash::MultiProfileUMA::RecordUserCount(users);
+ }
+
base::debug::SetCrashKeyValue(crash_keys::kNumberOfUsers,
base::StringPrintf("%" PRIuS, GetLoggedInUsers().size()));
}
« no previous file with comments | « ash/multi_profile_uma.cc ('k') | chrome/browser/lifetime/application_lifetime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698