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

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

Issue 8520024: Updating the UMA metrics for profiles to make them more readable. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 27 matching lines...) Expand all
38 AVATAR_CUPCAKE, 38 AVATAR_CUPCAKE,
39 AVATAR_DOG, 39 AVATAR_DOG,
40 AVATAR_HORSE, 40 AVATAR_HORSE,
41 AVATAR_MARGARITA, 41 AVATAR_MARGARITA,
42 AVATAR_NOTE, 42 AVATAR_NOTE,
43 AVATAR_SUN_CLOUD, 43 AVATAR_SUN_CLOUD,
44 AVATAR_UNKNOWN, 44 AVATAR_UNKNOWN,
45 NUM_PROFILE_AVATAR_METRICS 45 NUM_PROFILE_AVATAR_METRICS
46 }; 46 };
47 47
48 // Enum for counting the ways users were added.
49 enum ProfileAdd {
50 ADD_NEW_USER_ICON = 0, // User adds new user from icon menu
51 ADD_NEW_USER_MENU, // User adds new user from menu bar
52 NUM_PROFILE_ADD_METRICS
53 };
54
55 // Enum for counting the ways user profiles were opened.
48 enum ProfileOpen { 56 enum ProfileOpen {
49 ADD_NEW_USER = 0, // Total count of add new user 57 NTP_AVATAR_BUBBLE = 0, // User opens avatar icon menu from NTP
50 ADD_NEW_USER_ICON, // User adds new user from icon menu 58 ICON_AVATAR_BUBBLE, // User opens avatar icon menu from icon
51 ADD_NEW_USER_MENU, // User adds new user from menu bar
52 SWITCH_PROFILE_ICON, // User switches profiles from icon menu
53 SWITCH_PROFILE_MENU, // User switches profiles from menu bar
54 NTP_AVATAR_BUBBLE, // User opens avatar icon menu from NTP
55 ICON_AVATAR_BUBBLE, // User opens avatar icon menu from icon
56 PROFILE_DELETED, // User deleted a profile
57 NUM_PROFILE_OPEN_METRICS 59 NUM_PROFILE_OPEN_METRICS
58 }; 60 };
59 61
62 // Enum for counting the ways users switch between profiles.
63 enum ProfileSwitch {
64 SWITCH_PROFILE_ICON = 0, // User switches profiles from icon menu
65 SWITCH_PROFILE_MENU, // User switches profiles from menu bar
66 NUM_PROFILE_SWITCH_METRICS
67 };
68
69 // Enum for getting net counts for adding and deleting users.
70 enum ProfileNetUserCounts {
71 ADD_NEW_USER = 0, // Total count of add new user
72 PROFILE_DELETED, // User deleted a profile
73 NUM_PROFILE_NET_METRICS
74 };
75
60 // Sign in is logged once the user has entered their GAIA information. 76 // Sign in is logged once the user has entered their GAIA information.
61 // See sync_setup_flow.h. 77 // See sync_setup_flow.h.
62 // The options for sync are logged after the user has submitted the options 78 // The options for sync are logged after the user has submitted the options
63 // form. See sync_setup_handler.h. 79 // form. See sync_setup_handler.h.
64 enum ProfileSync { 80 enum ProfileSync {
65 SYNC_SIGN_IN = 0, // User signed into sync 81 SYNC_CUSTOMIZE = 0, // User decided to customize sync
66 SYNC_SIGN_IN_ORIGINAL, // User signed into sync in original profile 82 SYNC_CHOOSE, // User chose what to sync
67 SYNC_SIGN_IN_SECONDARY, // User signed into sync in secondary profile 83 SYNC_ENCRYPT, // User has chosen to encrypt all data
68 SYNC_CUSTOMIZE, // User decided to customize sync 84 SYNC_PASSPHRASE, // User is using a passphrase
Ilya Sherman 2011/11/16 03:29:19 Note that if you change the enum values, you shoul
rpetterson 2011/11/16 22:46:25 Fixed hte histogram name.
69 SYNC_CHOOSE, // User chose what to sync
70 SYNC_ENCRYPT, // User has chosen to encrypt all data
71 SYNC_PASSPHRASE, // User is using a passphrase
72 NUM_PROFILE_SYNC_METRICS 85 NUM_PROFILE_SYNC_METRICS
73 }; 86 };
74 87
75 enum ProfileType { 88 enum ProfileType {
76 ORIGINAL = 0, // Refers to the original/default profile 89 ORIGINAL = 0, // Refers to the original/default profile
77 SECONDARY, // Refers to a user-created profile 90 SECONDARY, // Refers to a user-created profile
78 NUM_PROFILE_TYPE_METRICS 91 NUM_PROFILE_TYPE_METRICS
79 }; 92 };
80 93
81 static void LogProfileAvatarSelection(size_t icon_index); 94 static void LogProfileAvatarSelection(size_t icon_index);
82 static void LogProfileOpenMethod(ProfileOpen metric); 95 static void LogProfileOpenMethod(ProfileOpen metric);
96 static void LogProfileAddNewUser(ProfileAdd metric);
97 static void LogProfileSwitchUser(ProfileSwitch metric);
98 static void LogProfileDeleteUser(ProfileNetUserCounts metric);
83 static void LogProfileSyncInfo(ProfileSync metric); 99 static void LogProfileSyncInfo(ProfileSync metric);
84 static void LogProfileUpdate(FilePath& profile_path); 100 static void LogProfileUpdate(FilePath& profile_path);
85 static void LogProfileSyncSignIn(FilePath& profile_path); 101 static void LogProfileSyncSignIn(FilePath& profile_path);
86 }; 102 };
87 103
88 104
89 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 105 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698