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

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

Issue 302603013: UMA for modifying the profile image/name in the menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // histogram from those that were initiated from the avatar button. 104 // histogram from those that were initiated from the avatar button.
105 // An example of the interaction beginning in the content area is 105 // An example of the interaction beginning in the content area is
106 // clicking "Manage Accounts" within account selection on a Google property. 106 // clicking "Manage Accounts" within account selection on a Google property.
107 enum ProfileDesktopMenu { 107 enum ProfileDesktopMenu {
108 // User opened the user menu, and clicked lock. 108 // User opened the user menu, and clicked lock.
109 PROFILE_DESKTOP_MENU_LOCK = 0, 109 PROFILE_DESKTOP_MENU_LOCK = 0,
110 // User opened the user menu, and removed an account. 110 // User opened the user menu, and removed an account.
111 PROFILE_DESKTOP_MENU_REMOVE_ACCT, 111 PROFILE_DESKTOP_MENU_REMOVE_ACCT,
112 // User opened the user menu, and started adding an account. 112 // User opened the user menu, and started adding an account.
113 PROFILE_DESKTOP_MENU_ADD_ACCT, 113 PROFILE_DESKTOP_MENU_ADD_ACCT,
114 // User opened the user menu, and changed the profile name.
115 PROFILE_DESKTOP_MENU_EDIT_NAME,
116 // User opened the user menu, and started selecting a new profile image.
117 PROFILE_DESKTOP_MENU_EDIT_IMAGE,
114 NUM_PROFILE_DESKTOP_MENU_METRICS, 118 NUM_PROFILE_DESKTOP_MENU_METRICS,
115 }; 119 };
116 120
117 static void UpdateReportedProfilesStatistics(ProfileManager* manager); 121 static void UpdateReportedProfilesStatistics(ProfileManager* manager);
118 122
119 static void LogNumberOfProfiles(ProfileManager* manager); 123 static void LogNumberOfProfiles(ProfileManager* manager);
120 static void LogProfileAddNewUser(ProfileAdd metric); 124 static void LogProfileAddNewUser(ProfileAdd metric);
121 static void LogProfileAvatarSelection(size_t icon_index); 125 static void LogProfileAvatarSelection(size_t icon_index);
122 static void LogProfileDeleteUser(ProfileNetUserCounts metric); 126 static void LogProfileDeleteUser(ProfileNetUserCounts metric);
123 static void LogProfileOpenMethod(ProfileOpen metric); 127 static void LogProfileOpenMethod(ProfileOpen metric);
124 static void LogProfileSwitchGaia(ProfileGaia metric); 128 static void LogProfileSwitchGaia(ProfileGaia metric);
125 static void LogProfileSwitchUser(ProfileOpen metric); 129 static void LogProfileSwitchUser(ProfileOpen metric);
126 static void LogProfileSyncInfo(ProfileSync metric); 130 static void LogProfileSyncInfo(ProfileSync metric);
127 static void LogProfileAuthResult(ProfileAuth metric); 131 static void LogProfileAuthResult(ProfileAuth metric);
128 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric); 132 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric);
129 static void LogProfileDesktopMenu(ProfileDesktopMenu metric, 133 static void LogProfileDesktopMenu(ProfileDesktopMenu metric,
130 signin::GAIAServiceType gaia_service); 134 signin::GAIAServiceType gaia_service);
131 135
132 // These functions should only be called on the UI thread because they hook 136 // These functions should only be called on the UI thread because they hook
133 // into g_browser_process through a helper function. 137 // into g_browser_process through a helper function.
134 static void LogProfileLaunch(Profile* profile); 138 static void LogProfileLaunch(Profile* profile);
135 static void LogProfileSyncSignIn(const base::FilePath& profile_path); 139 static void LogProfileSyncSignIn(const base::FilePath& profile_path);
136 static void LogProfileUpdate(const base::FilePath& profile_path); 140 static void LogProfileUpdate(const base::FilePath& profile_path);
137 }; 141 };
138 142
139 143
140 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 144 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698