OLD | NEW |
---|---|
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 }; | 73 }; |
74 | 74 |
75 enum ProfileAuth { | 75 enum ProfileAuth { |
76 AUTH_UNNECESSARY, // Profile was not locked | 76 AUTH_UNNECESSARY, // Profile was not locked |
77 AUTH_LOCAL, // Profile was authenticated locally | 77 AUTH_LOCAL, // Profile was authenticated locally |
78 AUTH_ONLINE, // Profile was authenticated on-line | 78 AUTH_ONLINE, // Profile was authenticated on-line |
79 AUTH_FAILED, // Profile failed authentication | 79 AUTH_FAILED, // Profile failed authentication |
80 NUM_PROFILE_AUTH_METRICS | 80 NUM_PROFILE_AUTH_METRICS |
81 }; | 81 }; |
82 | 82 |
83 // Enum for tracking whether Mirror is enabled and Promo views. | |
84 enum ProfileEnrollment { | |
85 PROMO_DISPLAY, // The Mirror Promo was displayed | |
86 PROMO_ACCEPT, // Mirror was enabled via the Promo | |
87 PROMO_DISMISS, // The Promo was dismissed | |
88 MIRROR_DISABLE, // Mirror was disabled after having been enabled | |
89 NUM_PROFILE_ENROLLMENT_METRICS | |
90 }; | |
guohui
2014/04/16 15:47:45
mirror promo is not dismiss-able at the moment ...
Mike Lerman
2014/04/24 15:14:16
I've renamed these. I know Mirror isn't disable-ab
| |
91 | |
83 static void UpdateReportedProfilesStatistics(ProfileManager* manager); | 92 static void UpdateReportedProfilesStatistics(ProfileManager* manager); |
84 | 93 |
85 static void LogNumberOfProfiles(ProfileManager* manager); | 94 static void LogNumberOfProfiles(ProfileManager* manager); |
86 static void LogProfileAddNewUser(ProfileAdd metric); | 95 static void LogProfileAddNewUser(ProfileAdd metric); |
87 static void LogProfileAvatarSelection(size_t icon_index); | 96 static void LogProfileAvatarSelection(size_t icon_index); |
88 static void LogProfileDeleteUser(ProfileNetUserCounts metric); | 97 static void LogProfileDeleteUser(ProfileNetUserCounts metric); |
89 static void LogProfileOpenMethod(ProfileOpen metric); | 98 static void LogProfileOpenMethod(ProfileOpen metric); |
90 static void LogProfileSwitchGaia(ProfileGaia metric); | 99 static void LogProfileSwitchGaia(ProfileGaia metric); |
91 static void LogProfileSwitchUser(ProfileOpen metric); | 100 static void LogProfileSwitchUser(ProfileOpen metric); |
92 static void LogProfileSyncInfo(ProfileSync metric); | 101 static void LogProfileSyncInfo(ProfileSync metric); |
93 static void LogProfileAuthResult(ProfileAuth metric); | 102 static void LogProfileAuthResult(ProfileAuth metric); |
103 static void LogProfileMirrorEnrollment(ProfileEnrollment metric); | |
94 | 104 |
95 // These functions should only be called on the UI thread because they hook | 105 // These functions should only be called on the UI thread because they hook |
96 // into g_browser_process through a helper function. | 106 // into g_browser_process through a helper function. |
97 static void LogProfileLaunch(Profile* profile); | 107 static void LogProfileLaunch(Profile* profile); |
98 static void LogProfileSyncSignIn(const base::FilePath& profile_path); | 108 static void LogProfileSyncSignIn(const base::FilePath& profile_path); |
99 static void LogProfileUpdate(const base::FilePath& profile_path); | 109 static void LogProfileUpdate(const base::FilePath& profile_path); |
100 }; | 110 }; |
101 | 111 |
102 | 112 |
103 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 113 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
OLD | NEW |