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

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

Issue 8790010: Adding in metrics for GAIA photo info. Also, fixing avatar logging to only log when the user chan... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 12
13 class FilePath; 13 class FilePath;
14 14
15 class ProfileMetrics { 15 class ProfileMetrics {
16 public: 16 public:
17 enum ProfileAvatar { 17 enum ProfileAvatar {
18 AVATAR_GENERIC = 0, // The names for avatar icons 18 AVATAR_GENERIC = 0, // The names for avatar icons
19 AVATAR_GENERIC_AQUA, 19 AVATAR_GENERIC_AQUA,
20 AVATAR_GENERIC_BLUE, 20 AVATAR_GENERIC_BLUE,
21 AVATAR_GENERIC_GREEN, 21 AVATAR_GENERIC_GREEN,
22 AVATAR_GENERIC_ORANGE, 22 AVATAR_GENERIC_ORANGE,
23 AVATAR_GENERIC_PURPLE, 23 AVATAR_GENERIC_PURPLE,
24 AVATAR_GENERIC_RED, 24 AVATAR_GENERIC_RED,
25 AVATAR_GENERIC_YELLOW, 25 AVATAR_GENERIC_YELLOW,
26 AVATAR_SECRET_AGENT, 26 AVATAR_SECRET_AGENT,
27 AVATAR_SUPERHERO, 27 AVATAR_SUPERHERO,
28 AVATAR_VOLLEYBALL, 28 AVATAR_VOLLEYBALL, // 10
29 AVATAR_BUSINESSMAN, 29 AVATAR_BUSINESSMAN,
30 AVATAR_NINJA, 30 AVATAR_NINJA,
31 AVATAR_ALIEN, 31 AVATAR_ALIEN,
32 AVATAR_AWESOME, 32 AVATAR_AWESOME,
33 AVATAR_FLOWER, 33 AVATAR_FLOWER,
34 AVATAR_PIZZA, 34 AVATAR_PIZZA,
35 AVATAR_SOCCER, 35 AVATAR_SOCCER,
36 AVATAR_BURGER, 36 AVATAR_BURGER,
37 AVATAR_CAT, 37 AVATAR_CAT,
38 AVATAR_CUPCAKE, 38 AVATAR_CUPCAKE, // 20
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, // 26
45 AVATAR_GAIA, // 27
Ilya Sherman 2011/12/03 02:31:13 nit: I think the alignment is off-by-one for these
rpetterson 2011/12/05 20:27:14 Done.
45 NUM_PROFILE_AVATAR_METRICS 46 NUM_PROFILE_AVATAR_METRICS
46 }; 47 };
Ilya Sherman 2011/12/03 02:31:13 nit: Hmm, I thought this enum got moved to the .cc
rpetterson 2011/12/05 20:27:14 It was always in the .h. But it now has a new home
47 48
48 // Enum for counting the ways users were added. 49 // Enum for counting the ways users were added.
49 enum ProfileAdd { 50 enum ProfileAdd {
50 ADD_NEW_USER_ICON = 0, // User adds new user from icon menu 51 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 ADD_NEW_USER_MENU, // User adds new user from menu bar
52 NUM_PROFILE_ADD_METRICS 53 NUM_PROFILE_ADD_METRICS
53 }; 54 };
54 55
55 // Enum for counting the ways user profiles and menus were opened. 56 // Enum for counting the ways user profiles and menus were opened.
56 enum ProfileOpen { 57 enum ProfileOpen {
(...skipping 22 matching lines...) Expand all
79 SYNC_PASSPHRASE, // User is using a passphrase 80 SYNC_PASSPHRASE, // User is using a passphrase
80 NUM_PROFILE_SYNC_METRICS 81 NUM_PROFILE_SYNC_METRICS
81 }; 82 };
82 83
83 enum ProfileType { 84 enum ProfileType {
84 ORIGINAL = 0, // Refers to the original/default profile 85 ORIGINAL = 0, // Refers to the original/default profile
85 SECONDARY, // Refers to a user-created profile 86 SECONDARY, // Refers to a user-created profile
86 NUM_PROFILE_TYPE_METRICS 87 NUM_PROFILE_TYPE_METRICS
87 }; 88 };
88 89
90 enum ProfileGaia {
91 GAIA_OPT_IN = 0, // User changed to GAIA photo as avatar
92 GAIA_OPT_OUT, // User changed to not use GAIA photo as avatar
Ilya Sherman 2011/12/03 02:31:13 Hmm, is one of these the default, or are users som
rpetterson 2011/12/05 20:27:14 I understand what you're asking as I had the same
93 NUM_PROFILE_GAIA_METRICS
94 };
95
89 static void LogProfileAvatarSelection(size_t icon_index); 96 static void LogProfileAvatarSelection(size_t icon_index);
90 static void LogProfileOpenMethod(ProfileOpen metric); 97 static void LogProfileOpenMethod(ProfileOpen metric);
91 static void LogProfileAddNewUser(ProfileAdd metric); 98 static void LogProfileAddNewUser(ProfileAdd metric);
92 static void LogProfileSwitchUser(ProfileOpen metric); 99 static void LogProfileSwitchUser(ProfileOpen metric);
93 static void LogProfileDeleteUser(ProfileNetUserCounts metric); 100 static void LogProfileDeleteUser(ProfileNetUserCounts metric);
94 static void LogProfileSyncInfo(ProfileSync metric); 101 static void LogProfileSyncInfo(ProfileSync metric);
95 static void LogProfileUpdate(FilePath& profile_path); 102 static void LogProfileUpdate(FilePath& profile_path);
96 static void LogProfileSyncSignIn(FilePath& profile_path); 103 static void LogProfileSyncSignIn(FilePath& profile_path);
104 static void LogProfileSwitchGaia(ProfileGaia metric);
97 }; 105 };
98 106
99 107
100 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 108 #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