Chromium Code Reviews| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 200 PROFILE_AVATAR_MENU_UPGRADE_NOT_YOU, | 200 PROFILE_AVATAR_MENU_UPGRADE_NOT_YOU, |
| 201 NUM_PROFILE_AVATAR_MENU_UPGRADE_METRICS, | 201 NUM_PROFILE_AVATAR_MENU_UPGRADE_METRICS, |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 static void UpdateReportedProfilesStatistics(ProfileManager* manager); | 204 static void UpdateReportedProfilesStatistics(ProfileManager* manager); |
| 205 // Count and return summary information about the profiles currently in the | 205 // Count and return summary information about the profiles currently in the |
| 206 // |manager|. This information is returned in the output variable |counts|. | 206 // |manager|. This information is returned in the output variable |counts|. |
| 207 static bool CountProfileInformation(ProfileManager* manager, | 207 static bool CountProfileInformation(ProfileManager* manager, |
| 208 ProfileCounts* counts); | 208 ProfileCounts* counts); |
| 209 | 209 |
| 210 static void IncrementNumberOfSwitches(); | |
|
Mike Lerman
2015/01/21 20:58:03
IncrementNumberOfSwitches is only ever called loca
anthonyvd
2015/01/23 16:01:31
Done.
| |
| 211 static void LogNumberOfSwitches(); | |
|
Mike Lerman
2015/01/21 20:58:03
Please specify - either call it LogNumberOfProfile
anthonyvd
2015/01/23 16:01:31
Done.
| |
| 210 static void LogNumberOfProfiles(ProfileManager* manager); | 212 static void LogNumberOfProfiles(ProfileManager* manager); |
| 211 static void LogProfileAddNewUser(ProfileAdd metric); | 213 static void LogProfileAddNewUser(ProfileAdd metric); |
| 212 static void LogProfileAvatarSelection(size_t icon_index); | 214 static void LogProfileAvatarSelection(size_t icon_index); |
| 213 static void LogProfileDeleteUser(ProfileDelete metric); | 215 static void LogProfileDeleteUser(ProfileDelete metric); |
| 214 static void LogProfileOpenMethod(ProfileOpen metric); | 216 static void LogProfileOpenMethod(ProfileOpen metric); |
| 217 static void LogProfileSwitch(ProfileOpen metric, bool profile_already_open); | |
| 215 static void LogProfileSwitchGaia(ProfileGaia metric); | 218 static void LogProfileSwitchGaia(ProfileGaia metric); |
| 216 static void LogProfileSwitchUser(ProfileOpen metric); | |
| 217 static void LogProfileSyncInfo(ProfileSync metric); | 219 static void LogProfileSyncInfo(ProfileSync metric); |
| 218 static void LogProfileAuthResult(ProfileAuth metric); | 220 static void LogProfileAuthResult(ProfileAuth metric); |
| 219 static void LogProfileDesktopMenu(ProfileDesktopMenu metric, | 221 static void LogProfileDesktopMenu(ProfileDesktopMenu metric, |
| 220 signin::GAIAServiceType gaia_service); | 222 signin::GAIAServiceType gaia_service); |
| 221 static void LogProfileDelete(bool profile_was_signed_in); | 223 static void LogProfileDelete(bool profile_was_signed_in); |
| 222 static void LogProfileNewAvatarMenuNotYou(ProfileNewAvatarMenuNotYou metric); | 224 static void LogProfileNewAvatarMenuNotYou(ProfileNewAvatarMenuNotYou metric); |
| 223 static void LogProfileNewAvatarMenuSignin(ProfileNewAvatarMenuSignin metric); | 225 static void LogProfileNewAvatarMenuSignin(ProfileNewAvatarMenuSignin metric); |
| 224 static void LogProfileNewAvatarMenuUpgrade( | 226 static void LogProfileNewAvatarMenuUpgrade( |
| 225 ProfileNewAvatarMenuUpgrade metric); | 227 ProfileNewAvatarMenuUpgrade metric); |
| 226 | 228 |
| 227 #if defined(OS_ANDROID) | 229 #if defined(OS_ANDROID) |
| 228 static void LogProfileAndroidAccountManagementMenu( | 230 static void LogProfileAndroidAccountManagementMenu( |
| 229 ProfileAndroidAccountManagementMenu metric, | 231 ProfileAndroidAccountManagementMenu metric, |
| 230 signin::GAIAServiceType gaia_service); | 232 signin::GAIAServiceType gaia_service); |
| 231 #endif // defined(OS_ANDROID) | 233 #endif // defined(OS_ANDROID) |
| 232 | 234 |
| 233 // These functions should only be called on the UI thread because they hook | 235 // These functions should only be called on the UI thread because they hook |
| 234 // into g_browser_process through a helper function. | 236 // into g_browser_process through a helper function. |
| 235 static void LogProfileLaunch(Profile* profile); | 237 static void LogProfileLaunch(Profile* profile); |
| 236 static void LogProfileSyncSignIn(const base::FilePath& profile_path); | 238 static void LogProfileSyncSignIn(const base::FilePath& profile_path); |
| 237 static void LogProfileUpdate(const base::FilePath& profile_path); | 239 static void LogProfileUpdate(const base::FilePath& profile_path); |
| 238 }; | 240 }; |
| 239 | 241 |
| 240 | 242 |
| 241 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 243 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
| OLD | NEW |