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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 LogNumberOfProfileSwitches(); | 210 static void LogNumberOfProfileSwitches(); |
| 211 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 212 // Update OS level tracking of profile counts. |
| 213 static void UpdateReportedOSProfileStatistics(size_t active, size_t signedin); |
| 214 #endif |
| 215 |
211 static void LogNumberOfProfiles(ProfileManager* manager); | 216 static void LogNumberOfProfiles(ProfileManager* manager); |
212 static void LogProfileAddNewUser(ProfileAdd metric); | 217 static void LogProfileAddNewUser(ProfileAdd metric); |
213 static void LogProfileAvatarSelection(size_t icon_index); | 218 static void LogProfileAvatarSelection(size_t icon_index); |
214 static void LogProfileDeleteUser(ProfileDelete metric); | 219 static void LogProfileDeleteUser(ProfileDelete metric); |
215 static void LogProfileOpenMethod(ProfileOpen metric); | 220 static void LogProfileOpenMethod(ProfileOpen metric); |
216 static void LogProfileSwitch(ProfileOpen metric, | 221 static void LogProfileSwitch(ProfileOpen metric, |
217 ProfileManager* manager, | 222 ProfileManager* manager, |
218 const base::FilePath& profile_path); | 223 const base::FilePath& profile_path); |
219 static void LogProfileSwitchGaia(ProfileGaia metric); | 224 static void LogProfileSwitchGaia(ProfileGaia metric); |
220 static void LogProfileSyncInfo(ProfileSync metric); | 225 static void LogProfileSyncInfo(ProfileSync metric); |
(...skipping 14 matching lines...) Expand all Loading... |
235 | 240 |
236 // These functions should only be called on the UI thread because they hook | 241 // These functions should only be called on the UI thread because they hook |
237 // into g_browser_process through a helper function. | 242 // into g_browser_process through a helper function. |
238 static void LogProfileLaunch(Profile* profile); | 243 static void LogProfileLaunch(Profile* profile); |
239 static void LogProfileSyncSignIn(const base::FilePath& profile_path); | 244 static void LogProfileSyncSignIn(const base::FilePath& profile_path); |
240 static void LogProfileUpdate(const base::FilePath& profile_path); | 245 static void LogProfileUpdate(const base::FilePath& profile_path); |
241 }; | 246 }; |
242 | 247 |
243 | 248 |
244 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 249 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
OLD | NEW |