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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 static void LogProfileAvatarSelection(size_t icon_index); | 151 static void LogProfileAvatarSelection(size_t icon_index); |
152 static void LogProfileDeleteUser(ProfileNetUserCounts metric); | 152 static void LogProfileDeleteUser(ProfileNetUserCounts metric); |
153 static void LogProfileOpenMethod(ProfileOpen metric); | 153 static void LogProfileOpenMethod(ProfileOpen metric); |
154 static void LogProfileSwitchGaia(ProfileGaia metric); | 154 static void LogProfileSwitchGaia(ProfileGaia metric); |
155 static void LogProfileSwitchUser(ProfileOpen metric); | 155 static void LogProfileSwitchUser(ProfileOpen metric); |
156 static void LogProfileSyncInfo(ProfileSync metric); | 156 static void LogProfileSyncInfo(ProfileSync metric); |
157 static void LogProfileAuthResult(ProfileAuth metric); | 157 static void LogProfileAuthResult(ProfileAuth metric); |
158 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric); | 158 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric); |
159 static void LogProfileDesktopMenu(ProfileDesktopMenu metric, | 159 static void LogProfileDesktopMenu(ProfileDesktopMenu metric, |
160 signin::GAIAServiceType gaia_service); | 160 signin::GAIAServiceType gaia_service); |
| 161 static void LogProfileDelete(bool profile_was_signed_in); |
161 | 162 |
162 #if defined(OS_ANDROID) | 163 #if defined(OS_ANDROID) |
163 static void LogProfileAndroidAccountManagementMenu( | 164 static void LogProfileAndroidAccountManagementMenu( |
164 ProfileAndroidAccountManagementMenu metric, | 165 ProfileAndroidAccountManagementMenu metric, |
165 signin::GAIAServiceType gaia_service); | 166 signin::GAIAServiceType gaia_service); |
166 #endif // defined(OS_ANDROID) | 167 #endif // defined(OS_ANDROID) |
167 | 168 |
168 // These functions should only be called on the UI thread because they hook | 169 // These functions should only be called on the UI thread because they hook |
169 // into g_browser_process through a helper function. | 170 // into g_browser_process through a helper function. |
170 static void LogProfileLaunch(Profile* profile); | 171 static void LogProfileLaunch(Profile* profile); |
171 static void LogProfileSyncSignIn(const base::FilePath& profile_path); | 172 static void LogProfileSyncSignIn(const base::FilePath& profile_path); |
172 static void LogProfileUpdate(const base::FilePath& profile_path); | 173 static void LogProfileUpdate(const base::FilePath& profile_path); |
173 }; | 174 }; |
174 | 175 |
175 | 176 |
176 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 177 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
OLD | NEW |