| Index: chrome/browser/profiles/profile_metrics.h
|
| ===================================================================
|
| --- chrome/browser/profiles/profile_metrics.h (revision 113419)
|
| +++ chrome/browser/profiles/profile_metrics.h (working copy)
|
| @@ -11,6 +11,7 @@
|
| #include "base/basictypes.h"
|
|
|
| class FilePath;
|
| +class ProfileManager;
|
|
|
| class ProfileMetrics {
|
| public:
|
| @@ -61,15 +62,27 @@
|
| NUM_PROFILE_GAIA_METRICS
|
| };
|
|
|
| + enum ProfileEvent {
|
| + STARTUP_PROFILE_EVENT = 0,
|
| + ADD_PROFILE_EVENT,
|
| + DELETE_PROFILE_EVENT
|
| + };
|
| +
|
| + static void LogNumberOfProfiles(ProfileManager* manager,
|
| + ProfileEvent startup);
|
| + static void LogProfileAddNewUser(ProfileAdd metric);
|
| static void LogProfileAvatarSelection(size_t icon_index);
|
| + static void LogProfileDeleteUser(ProfileNetUserCounts metric);
|
| static void LogProfileOpenMethod(ProfileOpen metric);
|
| - static void LogProfileAddNewUser(ProfileAdd metric);
|
| + static void LogProfileSwitchGaia(ProfileGaia metric);
|
| static void LogProfileSwitchUser(ProfileOpen metric);
|
| - static void LogProfileDeleteUser(ProfileNetUserCounts metric);
|
| static void LogProfileSyncInfo(ProfileSync metric);
|
| - static void LogProfileUpdate(FilePath& profile_path);
|
| - static void LogProfileSyncSignIn(FilePath& profile_path);
|
| - static void LogProfileSwitchGaia(ProfileGaia metric);
|
| +
|
| + // These functions should only be called on the UI thread because they hook
|
| + // into g_browser_process through a helper function.
|
| + static void LogProfileLaunch(const FilePath& profile_path);
|
| + static void LogProfileSyncSignIn(const FilePath& profile_path);
|
| + static void LogProfileUpdate(const FilePath& profile_path);
|
| };
|
|
|
|
|
|
|