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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 | 43 |
44 enum ProfileDelete { | 44 enum ProfileDelete { |
45 DELETE_PROFILE_SETTINGS = 0, // Delete profile from settings page. | 45 DELETE_PROFILE_SETTINGS = 0, // Delete profile from settings page. |
46 DELETE_PROFILE_USER_MANAGER, // Delete profile from User Manager. | 46 DELETE_PROFILE_USER_MANAGER, // Delete profile from User Manager. |
47 NUM_DELETE_PROFILE_METRICS | 47 NUM_DELETE_PROFILE_METRICS |
48 }; | 48 }; |
49 | 49 |
50 // Enum for counting the ways user profiles and menus were opened. | 50 // Enum for counting the ways user profiles and menus were opened. |
51 enum ProfileOpen { | 51 enum ProfileOpen { |
52 NTP_AVATAR_BUBBLE = 0, // User opens avatar icon menu from NTP | 52 NTP_AVATAR_BUBBLE = 0, // User opens avatar icon menu from NTP |
53 ICON_AVATAR_BUBBLE, // User opens avatar icon menu from icon | 53 ICON_AVATAR_BUBBLE, // User opens avatar icon menu from icon or button |
noms (inactive)
2014/11/03 15:18:52
nit: i would call this the "avatar menu" not the "
Mike Lerman
2014/11/03 15:32:07
Done.
| |
54 SWITCH_PROFILE_ICON, // User switches profiles from icon menu | 54 SWITCH_PROFILE_ICON, // User switches profiles from icon menu |
55 SWITCH_PROFILE_MENU, // User switches profiles from menu bar | 55 SWITCH_PROFILE_MENU, // User switches profiles from menu bar |
56 SWITCH_PROFILE_DOCK, // User switches profiles from dock (Mac-only) | 56 SWITCH_PROFILE_DOCK, // User switches profiles from dock (Mac-only) |
57 OPEN_USER_MANAGER, // User opens the User Manager | 57 OPEN_USER_MANAGER, // User opens the User Manager |
58 SWITCH_PROFILE_MANAGER, // User switches profiles from the User Manager | 58 SWITCH_PROFILE_MANAGER, // User switches profiles from the User Manager |
59 SWITCH_PROFILE_UNLOCK, // User switches to lockd profile via User Manager | 59 SWITCH_PROFILE_UNLOCK, // User switches to lockd profile via User Manager |
60 SWITCH_PROFILE_GUEST, // User switches to guest profile | 60 SWITCH_PROFILE_GUEST, // User switches to guest profile |
61 NUM_PROFILE_OPEN_METRICS | 61 NUM_PROFILE_OPEN_METRICS |
62 }; | 62 }; |
63 | 63 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
226 | 226 |
227 // These functions should only be called on the UI thread because they hook | 227 // These functions should only be called on the UI thread because they hook |
228 // into g_browser_process through a helper function. | 228 // into g_browser_process through a helper function. |
229 static void LogProfileLaunch(Profile* profile); | 229 static void LogProfileLaunch(Profile* profile); |
230 static void LogProfileSyncSignIn(const base::FilePath& profile_path); | 230 static void LogProfileSyncSignIn(const base::FilePath& profile_path); |
231 static void LogProfileUpdate(const base::FilePath& profile_path); | 231 static void LogProfileUpdate(const base::FilePath& profile_path); |
232 }; | 232 }; |
233 | 233 |
234 | 234 |
235 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 235 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
OLD | NEW |