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

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: Change histogram bucket order for maintainability. 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.
101 // Note that the Enums are in pairs, with a base action coming first and the
102 // following item indicating the same action but initiated from the content
103 // area. An example of the interaction beginning in the content area is
104 // clicking "Manage Accounts" within account selection on a Google property.
105 enum ProfileDesktopSignout {
106 // User opened the user menu directly, and clicked lock.
107 PROFILE_DESKTOP_MENU_LOCK = 0,
108 // The content area caused the user menu to open, the user clicked lock.
109 PROFILE_DESKTOP_MENU_LOCK_FROM_CONTENT,
110 // User opened the user menu directly, and started removing an account.
111 PROFILE_DESKTOP_MENU_REMOVE_ACCT,
112 // The content area caused the user menu to open, the user started removing
113 // an account.
114 PROFILE_DESKTOP_MENU_REMOVE_ACCT_FROM_CONTENT,
115 // User opened the user menu directly, and started adding an account.
116 PROFILE_DESKTOP_MENU_ADD_ACCT,
117 // The content area caused the user menu to open, the user started adding an
118 // account.
119 PROFILE_DESKTOP_MENU_ADD_ACCT_FROM_CONTENT,
120 NUM_PROFILE_DESKTOP_SIGNOUT_METRICS,
121 };
122
99 static void UpdateReportedProfilesStatistics(ProfileManager* manager); 123 static void UpdateReportedProfilesStatistics(ProfileManager* manager);
100 124
101 static void LogNumberOfProfiles(ProfileManager* manager); 125 static void LogNumberOfProfiles(ProfileManager* manager);
102 static void LogProfileAddNewUser(ProfileAdd metric); 126 static void LogProfileAddNewUser(ProfileAdd metric);
103 static void LogProfileAvatarSelection(size_t icon_index); 127 static void LogProfileAvatarSelection(size_t icon_index);
104 static void LogProfileDeleteUser(ProfileNetUserCounts metric); 128 static void LogProfileDeleteUser(ProfileNetUserCounts metric);
105 static void LogProfileOpenMethod(ProfileOpen metric); 129 static void LogProfileOpenMethod(ProfileOpen metric);
106 static void LogProfileSwitchGaia(ProfileGaia metric); 130 static void LogProfileSwitchGaia(ProfileGaia metric);
107 static void LogProfileSwitchUser(ProfileOpen metric); 131 static void LogProfileSwitchUser(ProfileOpen metric);
108 static void LogProfileSyncInfo(ProfileSync metric); 132 static void LogProfileSyncInfo(ProfileSync metric);
109 static void LogProfileAuthResult(ProfileAuth metric); 133 static void LogProfileAuthResult(ProfileAuth metric);
110 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric); 134 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric);
135 static void LogProfileDesktopSignout(ProfileDesktopSignout metric,
136 bool opened_from_content);
111 137
112 // These functions should only be called on the UI thread because they hook 138 // These functions should only be called on the UI thread because they hook
113 // into g_browser_process through a helper function. 139 // into g_browser_process through a helper function.
114 static void LogProfileLaunch(Profile* profile); 140 static void LogProfileLaunch(Profile* profile);
115 static void LogProfileSyncSignIn(const base::FilePath& profile_path); 141 static void LogProfileSyncSignIn(const base::FilePath& profile_path);
116 static void LogProfileUpdate(const base::FilePath& profile_path); 142 static void LogProfileUpdate(const base::FilePath& profile_path);
117 }; 143 };
118 144
119 145
120 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 146 #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