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

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: Track user-source in the histogram suffix 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 // Interactions initiated from the content area are logged into a different
101 // histogram from those that were initiated from the avatar button.
102 // An example of the interaction beginning in the content area is
103 // clicking "Manage Accounts" within account selection on a Google property.
104 enum ProfileDesktopSignout {
105 // User opened the user menu, and clicked lock.
106 PROFILE_DESKTOP_MENU_LOCK = 0,
107 // User opened the user menu, and started removing an account.
108 PROFILE_DESKTOP_MENU_REMOVE_ACCT,
109 // User opened the user menu, and started adding an account.
110 PROFILE_DESKTOP_MENU_ADD_ACCT,
111 NUM_PROFILE_DESKTOP_SIGNOUT_METRICS,
112 };
113
99 static void UpdateReportedProfilesStatistics(ProfileManager* manager); 114 static void UpdateReportedProfilesStatistics(ProfileManager* manager);
100 115
101 static void LogNumberOfProfiles(ProfileManager* manager); 116 static void LogNumberOfProfiles(ProfileManager* manager);
102 static void LogProfileAddNewUser(ProfileAdd metric); 117 static void LogProfileAddNewUser(ProfileAdd metric);
103 static void LogProfileAvatarSelection(size_t icon_index); 118 static void LogProfileAvatarSelection(size_t icon_index);
104 static void LogProfileDeleteUser(ProfileNetUserCounts metric); 119 static void LogProfileDeleteUser(ProfileNetUserCounts metric);
105 static void LogProfileOpenMethod(ProfileOpen metric); 120 static void LogProfileOpenMethod(ProfileOpen metric);
106 static void LogProfileSwitchGaia(ProfileGaia metric); 121 static void LogProfileSwitchGaia(ProfileGaia metric);
107 static void LogProfileSwitchUser(ProfileOpen metric); 122 static void LogProfileSwitchUser(ProfileOpen metric);
108 static void LogProfileSyncInfo(ProfileSync metric); 123 static void LogProfileSyncInfo(ProfileSync metric);
109 static void LogProfileAuthResult(ProfileAuth metric); 124 static void LogProfileAuthResult(ProfileAuth metric);
110 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric); 125 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric);
126 static void LogProfileDesktopSignout(ProfileDesktopSignout metric,
127 bool opened_from_content);
111 128
112 // These functions should only be called on the UI thread because they hook 129 // These functions should only be called on the UI thread because they hook
113 // into g_browser_process through a helper function. 130 // into g_browser_process through a helper function.
114 static void LogProfileLaunch(Profile* profile); 131 static void LogProfileLaunch(Profile* profile);
115 static void LogProfileSyncSignIn(const base::FilePath& profile_path); 132 static void LogProfileSyncSignIn(const base::FilePath& profile_path);
116 static void LogProfileUpdate(const base::FilePath& profile_path); 133 static void LogProfileUpdate(const base::FilePath& profile_path);
117 }; 134 };
118 135
119 136
120 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 137 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_metrics.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698