| 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 15 matching lines...) Expand all Loading... |
| 26 size_t supervised; | 26 size_t supervised; |
| 27 size_t unused; | 27 size_t unused; |
| 28 size_t gaia_icon; | 28 size_t gaia_icon; |
| 29 | 29 |
| 30 ProfileCounts() | 30 ProfileCounts() |
| 31 : total(0), signedin(0), supervised(0), unused(0), gaia_icon(0) {} | 31 : total(0), signedin(0), supervised(0), unused(0), gaia_icon(0) {} |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 // Enum for counting the ways users were added. | 34 // Enum for counting the ways users were added. |
| 35 enum ProfileAdd { | 35 enum ProfileAdd { |
| 36 ADD_NEW_USER_ICON = 0, // User adds new user from icon menu | 36 ADD_NEW_USER_ICON = 0, // User adds new user from icon menu |
| 37 ADD_NEW_USER_MENU, // User adds new user from menu bar | 37 ADD_NEW_USER_MENU, // User adds new user from menu bar |
| 38 ADD_NEW_USER_DIALOG, // User adds new user from create-profile dialog | 38 ADD_NEW_USER_DIALOG, // User adds new user from create-profile dialog |
| 39 ADD_NEW_USER_MANAGER, // User adds new user from User Manager | 39 ADD_NEW_USER_MANAGER, // User adds new user from User Manager |
| 40 ADD_NEW_USER_LAST_DELETED, // Auto-created after deleting last user |
| 40 NUM_PROFILE_ADD_METRICS | 41 NUM_PROFILE_ADD_METRICS |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 enum ProfileDelete { | 44 enum ProfileDelete { |
| 44 DELETE_PROFILE_SETTINGS = 0, // Delete profile from settings page. | 45 DELETE_PROFILE_SETTINGS = 0, // Delete profile from settings page. |
| 45 DELETE_PROFILE_USER_MANAGER, // Delete profile from User Manager. | 46 DELETE_PROFILE_USER_MANAGER, // Delete profile from User Manager. |
| 46 NUM_DELETE_PROFILE_METRICS | 47 NUM_DELETE_PROFILE_METRICS |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 // Enum for counting the ways user profiles and menus were opened. | 50 // Enum for counting the ways user profiles and menus were opened. |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 217 |
| 217 // These functions should only be called on the UI thread because they hook | 218 // These functions should only be called on the UI thread because they hook |
| 218 // into g_browser_process through a helper function. | 219 // into g_browser_process through a helper function. |
| 219 static void LogProfileLaunch(Profile* profile); | 220 static void LogProfileLaunch(Profile* profile); |
| 220 static void LogProfileSyncSignIn(const base::FilePath& profile_path); | 221 static void LogProfileSyncSignIn(const base::FilePath& profile_path); |
| 221 static void LogProfileUpdate(const base::FilePath& profile_path); | 222 static void LogProfileUpdate(const base::FilePath& profile_path); |
| 222 }; | 223 }; |
| 223 | 224 |
| 224 | 225 |
| 225 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 226 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
| OLD | NEW |