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

Unified Diff: chrome/browser/profiles/profile_metrics.h

Issue 132453004: Add Profile metric counting to new User Manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added stat on number of profile-manager opens Created 6 years, 11 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
Index: chrome/browser/profiles/profile_metrics.h
diff --git a/chrome/browser/profiles/profile_metrics.h b/chrome/browser/profiles/profile_metrics.h
index 58a056626d3bc9ae26842c9279b66a5b680328c8..68f69ca3d4afc4ec58bd5a5c7a981335823c465f 100644
--- a/chrome/browser/profiles/profile_metrics.h
+++ b/chrome/browser/profiles/profile_metrics.h
@@ -24,6 +24,7 @@ class ProfileMetrics {
ADD_NEW_USER_ICON = 0, // User adds new user from icon menu
ADD_NEW_USER_MENU, // User adds new user from menu bar
ADD_NEW_USER_DIALOG, // User adds new user from create-profile dialog
+ ADD_NEW_USER_MANAGER, // User adds new user from profile-manager
noms (inactive) 2014/01/23 17:00:57 What's the difference between USER_MANAGER and PRO
bcwhite 2014/01/23 18:14:05 Globally changed "profile-manager" to "User Manage
NUM_PROFILE_ADD_METRICS
};
@@ -34,6 +35,10 @@ class ProfileMetrics {
SWITCH_PROFILE_ICON, // User switches profiles from icon menu
SWITCH_PROFILE_MENU, // User switches profiles from menu bar
SWITCH_PROFILE_DOCK, // User switches profiles from dock (Mac-only)
+ OPEN_PROFILE_MANAGER, // User opens the profile-manager
+ SWITCH_PROFILE_MANAGER, // User switches profiles from the profile-manager
+ SWITCH_PROFILE_UNLOCK, // User switches profiles with authentication
+ SWITCH_PROFILE_GUEST, // User switches to guest profile
NUM_PROFILE_OPEN_METRICS
};
@@ -62,11 +67,19 @@ class ProfileMetrics {
};
enum ProfileGaia {
- GAIA_OPT_IN = 0, // User changed to GAIA photo as avatar
- GAIA_OPT_OUT, // User changed to not use GAIA photo as avatar
+ GAIA_OPT_IN = 0, // User changed to GAIA photo as avatar
+ GAIA_OPT_OUT, // User changed to not use GAIA photo as avatar
NUM_PROFILE_GAIA_METRICS
};
+ enum ProfileAuth {
+ AUTH_UNNECESSARY, // Profile was not locked
+ AUTH_LOCAL, // Profile was authenticated locally
+ AUTH_ONLINE, // Profile was authenticated on-line
+ AUTH_FAILED, // Profile failed authentication
+ NUM_PROFILE_AUTH_METRICS
+ };
+
static void UpdateReportedProfilesStatistics(ProfileManager* manager);
static void LogNumberOfProfiles(ProfileManager* manager);
@@ -77,6 +90,7 @@ class ProfileMetrics {
static void LogProfileSwitchGaia(ProfileGaia metric);
static void LogProfileSwitchUser(ProfileOpen metric);
static void LogProfileSyncInfo(ProfileSync metric);
+ static void LogProfileAuthResult(ProfileAuth metric);
// These functions should only be called on the UI thread because they hook
// into g_browser_process through a helper function.

Powered by Google App Engine
This is Rietveld 408576698