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

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 and menus 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 59 SWITCH_PROFILE_ICON, // User switches profiles from icon menu
52 SWITCH_PROFILE_ICON, // User switches profiles from icon menu 60 SWITCH_PROFILE_MENU, // User switches profiles from menu bar
Ilya Sherman 2011/11/16 23:04:37 nit: I'd recommend keeping the relative order of n
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 61 NUM_PROFILE_OPEN_METRICS
58 }; 62 };
59 63
64 // Enum for getting net counts for adding and deleting users.
65 enum ProfileNetUserCounts {
66 ADD_NEW_USER = 0, // Total count of add new user
67 PROFILE_DELETED, // User deleted a profile
68 NUM_PROFILE_NET_METRICS
69 };
70
60 // Sign in is logged once the user has entered their GAIA information. 71 // Sign in is logged once the user has entered their GAIA information.
61 // See sync_setup_flow.h. 72 // See sync_setup_flow.h.
62 // The options for sync are logged after the user has submitted the options 73 // The options for sync are logged after the user has submitted the options
63 // form. See sync_setup_handler.h. 74 // form. See sync_setup_handler.h.
64 enum ProfileSync { 75 enum ProfileSync {
65 SYNC_SIGN_IN = 0, // User signed into sync 76 SYNC_CUSTOMIZE = 0, // User decided to customize sync
66 SYNC_SIGN_IN_ORIGINAL, // User signed into sync in original profile 77 SYNC_CHOOSE, // User chose what to sync
67 SYNC_SIGN_IN_SECONDARY, // User signed into sync in secondary profile 78 SYNC_ENCRYPT, // User has chosen to encrypt all data
68 SYNC_CUSTOMIZE, // User decided to customize sync 79 SYNC_PASSPHRASE, // User is using a passphrase
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 80 NUM_PROFILE_SYNC_METRICS
73 }; 81 };
74 82
75 enum ProfileType { 83 enum ProfileType {
76 ORIGINAL = 0, // Refers to the original/default profile 84 ORIGINAL = 0, // Refers to the original/default profile
77 SECONDARY, // Refers to a user-created profile 85 SECONDARY, // Refers to a user-created profile
78 NUM_PROFILE_TYPE_METRICS 86 NUM_PROFILE_TYPE_METRICS
79 }; 87 };
80 88
81 static void LogProfileAvatarSelection(size_t icon_index); 89 static void LogProfileAvatarSelection(size_t icon_index);
82 static void LogProfileOpenMethod(ProfileOpen metric); 90 static void LogProfileOpenMethod(ProfileOpen metric);
91 static void LogProfileAddNewUser(ProfileAdd metric);
92 static void LogProfileSwitchUser(ProfileOpen metric);
93 static void LogProfileDeleteUser(ProfileNetUserCounts metric);
83 static void LogProfileSyncInfo(ProfileSync metric); 94 static void LogProfileSyncInfo(ProfileSync metric);
84 static void LogProfileUpdate(FilePath& profile_path); 95 static void LogProfileUpdate(FilePath& profile_path);
85 static void LogProfileSyncSignIn(FilePath& profile_path); 96 static void LogProfileSyncSignIn(FilePath& profile_path);
86 }; 97 };
87 98
88 99
89 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 100 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/avatar_menu_model.cc ('k') | chrome/browser/profiles/profile_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698