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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 NTP_AVATAR_BUBBLE = 0, // User opens avatar menu from NTP | 53 NTP_AVATAR_BUBBLE = 0, // User opens avatar menu from NTP |
54 ICON_AVATAR_BUBBLE, // User opens the avatar menu from button | 54 ICON_AVATAR_BUBBLE, // User opens the avatar menu from button |
55 SWITCH_PROFILE_ICON, // User switches profiles from icon menu | 55 SWITCH_PROFILE_ICON, // User switches profiles from icon menu |
56 SWITCH_PROFILE_MENU, // User switches profiles from menu bar | 56 SWITCH_PROFILE_MENU, // User switches profiles from menu bar |
57 SWITCH_PROFILE_DOCK, // User switches profiles from dock (Mac-only) | 57 SWITCH_PROFILE_DOCK, // User switches profiles from dock (Mac-only) |
58 OPEN_USER_MANAGER, // User opens the User Manager | 58 OPEN_USER_MANAGER, // User opens the User Manager |
59 SWITCH_PROFILE_MANAGER, // User switches profiles from the User Manager | 59 SWITCH_PROFILE_MANAGER, // User switches profiles from the User Manager |
60 SWITCH_PROFILE_UNLOCK, // User switches to locked profile via User Manager | 60 SWITCH_PROFILE_UNLOCK, // User switches to locked profile via User Manager |
61 SWITCH_PROFILE_GUEST, // User switches to guest profile | 61 SWITCH_PROFILE_GUEST, // User switches to guest profile |
62 SWITCH_PROFILE_CONTEXT_MENU, // User switches profiles from context menu | 62 SWITCH_PROFILE_CONTEXT_MENU, // User switches profiles from context menu |
| 63 SWITCH_PROFILE_DUPLICATE, // User switches to existing duplicate profile |
63 NUM_PROFILE_OPEN_METRICS | 64 NUM_PROFILE_OPEN_METRICS |
64 }; | 65 }; |
65 | 66 |
66 // Enum for getting net counts for adding and deleting users. | 67 // Enum for getting net counts for adding and deleting users. |
67 enum ProfileNetUserCounts { | 68 enum ProfileNetUserCounts { |
68 ADD_NEW_USER = 0, // Total count of add new user | 69 ADD_NEW_USER = 0, // Total count of add new user |
69 PROFILE_DELETED, // User deleted a profile | 70 PROFILE_DELETED, // User deleted a profile |
70 NUM_PROFILE_NET_METRICS | 71 NUM_PROFILE_NET_METRICS |
71 }; | 72 }; |
72 | 73 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 243 |
243 // These functions should only be called on the UI thread because they hook | 244 // These functions should only be called on the UI thread because they hook |
244 // into g_browser_process through a helper function. | 245 // into g_browser_process through a helper function. |
245 static void LogProfileLaunch(Profile* profile); | 246 static void LogProfileLaunch(Profile* profile); |
246 static void LogProfileSyncSignIn(const base::FilePath& profile_path); | 247 static void LogProfileSyncSignIn(const base::FilePath& profile_path); |
247 static void LogProfileUpdate(const base::FilePath& profile_path); | 248 static void LogProfileUpdate(const base::FilePath& profile_path); |
248 }; | 249 }; |
249 | 250 |
250 | 251 |
251 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 252 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
OLD | NEW |