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

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

Issue 8890054: Adding metrics to track browser launches per primary/secondary profile. Adding metrics to track n... (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
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 SECONDARY, // Refers to a user-created profile 54 SECONDARY, // Refers to a user-created profile
55 NUM_PROFILE_TYPE_METRICS 55 NUM_PROFILE_TYPE_METRICS
56 }; 56 };
57 57
58 enum ProfileGaia { 58 enum ProfileGaia {
59 GAIA_OPT_IN = 0, // User changed to GAIA photo as avatar 59 GAIA_OPT_IN = 0, // User changed to GAIA photo as avatar
60 GAIA_OPT_OUT, // User changed to not use GAIA photo as avatar 60 GAIA_OPT_OUT, // User changed to not use GAIA photo as avatar
61 NUM_PROFILE_GAIA_METRICS 61 NUM_PROFILE_GAIA_METRICS
62 }; 62 };
63 63
64 enum ProfileTime {
jar (doing other things) 2011/12/09 04:57:13 I'm confused by the name here. This has nothing t
Miranda Callahan 2011/12/09 14:01:02 Ditto -- I vote for "ProfileEvents", and the enum
rpetterson 2011/12/09 21:22:09 Yes, thanks, jar. These make a lot more sense are
65 TIME_STARTUP = 0,
66 TIME_ADD,
67 TIME_DELETE
68 };
69
64 static void LogProfileAvatarSelection(size_t icon_index); 70 static void LogProfileAvatarSelection(size_t icon_index);
65 static void LogProfileOpenMethod(ProfileOpen metric); 71 static void LogProfileOpenMethod(ProfileOpen metric);
66 static void LogProfileAddNewUser(ProfileAdd metric); 72 static void LogProfileAddNewUser(ProfileAdd metric);
67 static void LogProfileSwitchUser(ProfileOpen metric); 73 static void LogProfileSwitchUser(ProfileOpen metric);
68 static void LogProfileDeleteUser(ProfileNetUserCounts metric); 74 static void LogProfileDeleteUser(ProfileNetUserCounts metric);
69 static void LogProfileSyncInfo(ProfileSync metric); 75 static void LogProfileSyncInfo(ProfileSync metric);
70 static void LogProfileUpdate(FilePath& profile_path); 76 static void LogProfileUpdate(FilePath& profile_path);
71 static void LogProfileSyncSignIn(FilePath& profile_path); 77 static void LogProfileSyncSignIn(FilePath& profile_path);
72 static void LogProfileSwitchGaia(ProfileGaia metric); 78 static void LogProfileSwitchGaia(ProfileGaia metric);
79 static void LogProfileLaunch(FilePath& profile_path);
80 static void LogNumberOfProfiles(ProfileTime startup);
Miranda Callahan 2011/12/09 14:01:02 Maybe this list should be in alpha-order so they'r
rpetterson 2011/12/09 21:22:09 :) All set. And rearranged to match in the .cc fil
73 }; 81 };
74 82
75 83
76 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 84 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698