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

Side by Side Diff: chrome/browser/profiles/profile_metrics.h

Issue 288493008: UMA Metrics for the user menu, including vasquette-detection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit - make a member variable const Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 PROFILE_ENROLLMENT_LAUNCH_LEARN_MORE, 89 PROFILE_ENROLLMENT_LAUNCH_LEARN_MORE,
90 // User opted into New Profile Management via Promo card. 90 // User opted into New Profile Management via Promo card.
91 PROFILE_ENROLLMENT_ACCEPT_NEW_PROFILE_MGMT, 91 PROFILE_ENROLLMENT_ACCEPT_NEW_PROFILE_MGMT,
92 // User closed the Upgrade card. 92 // User closed the Upgrade card.
93 PROFILE_ENROLLMENT_CLOSE_WELCOME_CARD, 93 PROFILE_ENROLLMENT_CLOSE_WELCOME_CARD,
94 // Used disabled New Profile Management. 94 // Used disabled New Profile Management.
95 PROFILE_ENROLLMENT_DISABLE_NEW_PROFILE_MGMT, 95 PROFILE_ENROLLMENT_DISABLE_NEW_PROFILE_MGMT,
96 NUM_PROFILE_ENROLLMENT_METRICS, 96 NUM_PROFILE_ENROLLMENT_METRICS,
97 }; 97 };
98 98
99 // Enum for tracking user interactions with the user menu and user manager,
100 // including tracking if the vasquette was the start for user interaction.
Alexei Svitkine (slow) 2014/05/14 14:15:22 What's a vasquette? It doesn't seem to be a real w
Mike Lerman 2014/05/14 19:46:15 I had thought Vasquette was a Google-wide term. Ap
101 // Note: The n items before |FIRST_VASQUETTE_SIGNOUT_ENUM| should parallel
102 // the n items between |FIRST_VASQUETTE_SIGNOUT_ENUM| and
103 // |NUM_PROFILE_DESKTOP_SIGNOUT_METRICS| to indicate whether the particular
104 // user action was initiated from the vasquette or the avatar button.
105 enum ProfileDesktopSignout {
106 // User opened the user menu directly, and clicked lock.
107 PROFILE_DESKTOP_MENU_LOCK,
108 // User opened the user menu directly, and switched profiles.
109 PROFILE_DESKTOP_MENU_SWITCH,
110 // User opened the user menu directly, and started removing an account.
111 PROFILE_DESKTOP_MENU_REMOVE_ACCT,
112 // User opened the user menu directly, and started adding an account.
113 PROFILE_DESKTOP_MENU_ADD_ACCT,
114 // |FIRST_VASQUETTE_SIGNOUT_ENUM| should always be the midpoint enum.
Alexei Svitkine (slow) 2014/05/14 14:15:22 How are you going to keep this condition true when
Mike Lerman 2014/05/14 19:46:15 I'll take a different approach to ordering these.
115 // This bucket of the histogram should always be empty.
116 FIRST_VASQUETTE_SIGNOUT_ENUM,
117 // User clicked on vasquette, went to the user menu, and clicked lock.
118 PROFILE_DESKTOP_VASQUETTE_MENU_LOCK,
119 // User clicked on vasquette, went to the user menu, and switched profiles.
120 PROFILE_DESKTOP_VASQUETTE_MENU_SWITCH,
121 // User clicked on vasquette, went to the user menu, and started removing an
122 // account.
123 PROFILE_DESKTOP_VASQUETTE_REMOVE_ACCT,
124 // User clicked on vasquette, went to the user menu, and started adding an
125 // account.
126 PROFILE_DESKTOP_VASQUETTE_ADD_ACCT,
127 NUM_PROFILE_DESKTOP_SIGNOUT_METRICS,
128 };
129
99 static void UpdateReportedProfilesStatistics(ProfileManager* manager); 130 static void UpdateReportedProfilesStatistics(ProfileManager* manager);
100 131
101 static void LogNumberOfProfiles(ProfileManager* manager); 132 static void LogNumberOfProfiles(ProfileManager* manager);
102 static void LogProfileAddNewUser(ProfileAdd metric); 133 static void LogProfileAddNewUser(ProfileAdd metric);
103 static void LogProfileAvatarSelection(size_t icon_index); 134 static void LogProfileAvatarSelection(size_t icon_index);
104 static void LogProfileDeleteUser(ProfileNetUserCounts metric); 135 static void LogProfileDeleteUser(ProfileNetUserCounts metric);
105 static void LogProfileOpenMethod(ProfileOpen metric); 136 static void LogProfileOpenMethod(ProfileOpen metric);
106 static void LogProfileSwitchGaia(ProfileGaia metric); 137 static void LogProfileSwitchGaia(ProfileGaia metric);
107 static void LogProfileSwitchUser(ProfileOpen metric); 138 static void LogProfileSwitchUser(ProfileOpen metric);
108 static void LogProfileSyncInfo(ProfileSync metric); 139 static void LogProfileSyncInfo(ProfileSync metric);
109 static void LogProfileAuthResult(ProfileAuth metric); 140 static void LogProfileAuthResult(ProfileAuth metric);
110 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric); 141 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric);
142 static void LogProfileDesktopSignout(ProfileDesktopSignout metric,
143 bool opened_from_vasquette);
111 144
112 // These functions should only be called on the UI thread because they hook 145 // These functions should only be called on the UI thread because they hook
113 // into g_browser_process through a helper function. 146 // into g_browser_process through a helper function.
114 static void LogProfileLaunch(Profile* profile); 147 static void LogProfileLaunch(Profile* profile);
115 static void LogProfileSyncSignIn(const base::FilePath& profile_path); 148 static void LogProfileSyncSignIn(const base::FilePath& profile_path);
116 static void LogProfileUpdate(const base::FilePath& profile_path); 149 static void LogProfileUpdate(const base::FilePath& profile_path);
117 }; 150 };
118 151
119 152
120 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 153 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_metrics.cc » ('j') | chrome/browser/profiles/profile_metrics.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698