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 30 matching lines...) Expand all Loading... | |
41 enum ProfileAdd { | 41 enum ProfileAdd { |
42 ADD_NEW_USER_ICON = 0, // User adds new user from icon menu | 42 ADD_NEW_USER_ICON = 0, // User adds new user from icon menu |
43 ADD_NEW_USER_MENU, // User adds new user from menu bar | 43 ADD_NEW_USER_MENU, // User adds new user from menu bar |
44 ADD_NEW_USER_DIALOG, // User adds new user from create-profile dialog | 44 ADD_NEW_USER_DIALOG, // User adds new user from create-profile dialog |
45 ADD_NEW_USER_MANAGER, // User adds new user from User Manager | 45 ADD_NEW_USER_MANAGER, // User adds new user from User Manager |
46 ADD_NEW_USER_LAST_DELETED, // Auto-created after deleting last user | 46 ADD_NEW_USER_LAST_DELETED, // Auto-created after deleting last user |
47 NUM_PROFILE_ADD_METRICS | 47 NUM_PROFILE_ADD_METRICS |
48 }; | 48 }; |
49 | 49 |
50 enum ProfileDelete { | 50 enum ProfileDelete { |
51 DELETE_PROFILE_SETTINGS = 0, // Delete profile from settings page. | 51 // Delete profile from settings page. |
52 DELETE_PROFILE_USER_MANAGER, // Delete profile from User Manager. | 52 DELETE_PROFILE_SETTINGS = 0, |
53 // Delete profile from User Manager. | |
54 DELETE_PROFILE_USER_MANAGER, | |
55 // Show the delete profile warning in the user manager. | |
noms (inactive)
2015/03/18 21:20:48
nit: User Manager (title caps)
anthonyvd
2015/03/18 21:56:56
Done.
| |
56 DELETE_PROFILE_USER_MANAGER_SHOW_WARNING, | |
53 NUM_DELETE_PROFILE_METRICS | 57 NUM_DELETE_PROFILE_METRICS |
54 }; | 58 }; |
55 | 59 |
56 // Enum for counting the ways user profiles and menus were opened. | 60 // Enum for counting the ways user profiles and menus were opened. |
57 enum ProfileOpen { | 61 enum ProfileOpen { |
58 NTP_AVATAR_BUBBLE = 0, // User opens avatar menu from NTP | 62 NTP_AVATAR_BUBBLE = 0, // User opens avatar menu from NTP |
59 ICON_AVATAR_BUBBLE, // User opens the avatar menu from button | 63 ICON_AVATAR_BUBBLE, // User opens the avatar menu from button |
60 SWITCH_PROFILE_ICON, // User switches profiles from icon menu | 64 SWITCH_PROFILE_ICON, // User switches profiles from icon menu |
61 SWITCH_PROFILE_MENU, // User switches profiles from menu bar | 65 SWITCH_PROFILE_MENU, // User switches profiles from menu bar |
62 SWITCH_PROFILE_DOCK, // User switches profiles from dock (Mac-only) | 66 SWITCH_PROFILE_DOCK, // User switches profiles from dock (Mac-only) |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
235 | 239 |
236 // These functions should only be called on the UI thread because they hook | 240 // These functions should only be called on the UI thread because they hook |
237 // into g_browser_process through a helper function. | 241 // into g_browser_process through a helper function. |
238 static void LogProfileLaunch(Profile* profile); | 242 static void LogProfileLaunch(Profile* profile); |
239 static void LogProfileSyncSignIn(const base::FilePath& profile_path); | 243 static void LogProfileSyncSignIn(const base::FilePath& profile_path); |
240 static void LogProfileUpdate(const base::FilePath& profile_path); | 244 static void LogProfileUpdate(const base::FilePath& profile_path); |
241 }; | 245 }; |
242 | 246 |
243 | 247 |
244 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 248 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
OLD | NEW |