| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 DELETE_PROFILE_USER_MANAGER, | 55 DELETE_PROFILE_USER_MANAGER, |
| 56 // Show the delete profile warning in the User Manager. | 56 // Show the delete profile warning in the User Manager. |
| 57 DELETE_PROFILE_USER_MANAGER_SHOW_WARNING, | 57 DELETE_PROFILE_USER_MANAGER_SHOW_WARNING, |
| 58 // Show the delete profile warning in the Settings page. | 58 // Show the delete profile warning in the Settings page. |
| 59 DELETE_PROFILE_SETTINGS_SHOW_WARNING, | 59 DELETE_PROFILE_SETTINGS_SHOW_WARNING, |
| 60 NUM_DELETE_PROFILE_METRICS | 60 NUM_DELETE_PROFILE_METRICS |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 // Enum for counting the ways user profiles and menus were opened. | 63 // Enum for counting the ways user profiles and menus were opened. |
| 64 enum ProfileOpen { | 64 enum ProfileOpen { |
| 65 NTP_AVATAR_BUBBLE = 0, // User opens avatar menu from NTP | 65 NTP_AVATAR_BUBBLE = 0, // User opens avatar menu from NTP |
| 66 ICON_AVATAR_BUBBLE, // User opens the avatar menu from button | 66 ICON_AVATAR_BUBBLE, // User opens the avatar menu from button |
| 67 SWITCH_PROFILE_ICON, // User switches profiles from icon menu | 67 SWITCH_PROFILE_ICON, // User switches profiles from icon menu |
| 68 SWITCH_PROFILE_MENU, // User switches profiles from menu bar | 68 SWITCH_PROFILE_MENU, // User switches profiles from menu bar |
| 69 SWITCH_PROFILE_DOCK, // User switches profiles from dock (Mac-only) | 69 SWITCH_PROFILE_DOCK, // User switches profiles from dock (Mac-only) |
| 70 OPEN_USER_MANAGER, // User opens the User Manager | 70 OPEN_USER_MANAGER, // User opens the User Manager |
| 71 SWITCH_PROFILE_MANAGER, // User switches profiles from the User Manager | 71 SWITCH_PROFILE_MANAGER, // User switches profiles from the User Manager |
| 72 SWITCH_PROFILE_UNLOCK, // User switches to lockd profile via User Manager | 72 SWITCH_PROFILE_UNLOCK, // User switches to locked profile via User Manager |
| 73 SWITCH_PROFILE_GUEST, // User switches to guest profile | 73 SWITCH_PROFILE_GUEST, // User switches to guest profile |
| 74 SWITCH_PROFILE_CONTEXT_MENU, // User switches profiles from context menu |
| 74 NUM_PROFILE_OPEN_METRICS | 75 NUM_PROFILE_OPEN_METRICS |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 // Enum for getting net counts for adding and deleting users. | 78 // Enum for getting net counts for adding and deleting users. |
| 78 enum ProfileNetUserCounts { | 79 enum ProfileNetUserCounts { |
| 79 ADD_NEW_USER = 0, // Total count of add new user | 80 ADD_NEW_USER = 0, // Total count of add new user |
| 80 PROFILE_DELETED, // User deleted a profile | 81 PROFILE_DELETED, // User deleted a profile |
| 81 NUM_PROFILE_NET_METRICS | 82 NUM_PROFILE_NET_METRICS |
| 82 }; | 83 }; |
| 83 | 84 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 | 254 |
| 254 // These functions should only be called on the UI thread because they hook | 255 // These functions should only be called on the UI thread because they hook |
| 255 // into g_browser_process through a helper function. | 256 // into g_browser_process through a helper function. |
| 256 static void LogProfileLaunch(Profile* profile); | 257 static void LogProfileLaunch(Profile* profile); |
| 257 static void LogProfileSyncSignIn(const base::FilePath& profile_path); | 258 static void LogProfileSyncSignIn(const base::FilePath& profile_path); |
| 258 static void LogProfileUpdate(const base::FilePath& profile_path); | 259 static void LogProfileUpdate(const base::FilePath& profile_path); |
| 259 }; | 260 }; |
| 260 | 261 |
| 261 | 262 |
| 262 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 263 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
| OLD | NEW |