| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // User opened the user menu, and started selecting a new profile image. | 117 // User opened the user menu, and started selecting a new profile image. |
| 118 PROFILE_DESKTOP_MENU_EDIT_IMAGE, | 118 PROFILE_DESKTOP_MENU_EDIT_IMAGE, |
| 119 // User opened the user menu, and opened the user manager. | 119 // User opened the user menu, and opened the user manager. |
| 120 PROFILE_DESKTOP_MENU_OPEN_USER_MANAGER, | 120 PROFILE_DESKTOP_MENU_OPEN_USER_MANAGER, |
| 121 NUM_PROFILE_DESKTOP_MENU_METRICS, | 121 NUM_PROFILE_DESKTOP_MENU_METRICS, |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 #if defined(OS_ANDROID) | 124 #if defined(OS_ANDROID) |
| 125 // Enum for tracking user interactions with the account management menu | 125 // Enum for tracking user interactions with the account management menu |
| 126 // on Android. | 126 // on Android. |
| 127 // |
| 128 // A Java counterpart will be generated for this enum. |
| 129 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.profiles |
| 130 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: ProfileAccountManagementMetrics |
| 131 // GENERATED_JAVA_PREFIX_TO_STRIP: PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_ |
| 127 enum ProfileAndroidAccountManagementMenu { | 132 enum ProfileAndroidAccountManagementMenu { |
| 128 | 133 // User arrived at the Account management screen. |
| 129 #define PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU(label, value) \ | 134 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_VIEW = 0, |
| 130 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_##label = value, | 135 // User arrived at the Account management screen, and clicked Add account. |
| 131 #include "profile_metrics_list.h" | 136 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_ADD_ACCOUNT = 1, |
| 132 #undef PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU | 137 // User arrived at the Account management screen, and clicked Go incognito. |
| 133 | 138 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_GO_INCOGNITO = 2, |
| 139 // User arrived at the Account management screen, and clicked on primary. |
| 140 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_CLICK_PRIMARY_ACCOUNT = 3, |
| 141 // User arrived at the Account management screen, and clicked on secondary. |
| 142 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_CLICK_SECONDARY_ACCOUNT = 4, |
| 143 // User arrived at the Account management screen, toggled Chrome signout. |
| 144 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_TOGGLE_SIGNOUT = 5, |
| 145 // User toggled Chrome signout, and clicked Signout. |
| 146 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_SIGNOUT_SIGNOUT = 6, |
| 147 // User toggled Chrome signout, and clicked Cancel. |
| 148 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_SIGNOUT_CANCEL = 7, |
| 149 // User arrived at the android Account management screen directly from some |
| 150 // Gaia requests. |
| 151 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_DIRECT_ADD_ACCOUNT = 8, |
| 134 NUM_PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_METRICS, | 152 NUM_PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_METRICS, |
| 135 }; | 153 }; |
| 136 #endif // defined(OS_ANDROID) | 154 #endif // defined(OS_ANDROID) |
| 137 | 155 |
| 138 // Enum for tracking user interactions with the 'Not You?' bubble that users | 156 // Enum for tracking user interactions with the 'Not You?' bubble that users |
| 139 // can navigate to from the Upgrade bubble after upgrade. | 157 // can navigate to from the Upgrade bubble after upgrade. |
| 140 enum ProfileNewAvatarMenuNotYou { | 158 enum ProfileNewAvatarMenuNotYou { |
| 141 // User views the 'Not You?' bubble. | 159 // User views the 'Not You?' bubble. |
| 142 PROFILE_AVATAR_MENU_NOT_YOU_VIEW = 0, | 160 PROFILE_AVATAR_MENU_NOT_YOU_VIEW = 0, |
| 143 // User selects back from within the 'Not You?' bubble. | 161 // User selects back from within the 'Not You?' bubble. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 224 |
| 207 // These functions should only be called on the UI thread because they hook | 225 // These functions should only be called on the UI thread because they hook |
| 208 // into g_browser_process through a helper function. | 226 // into g_browser_process through a helper function. |
| 209 static void LogProfileLaunch(Profile* profile); | 227 static void LogProfileLaunch(Profile* profile); |
| 210 static void LogProfileSyncSignIn(const base::FilePath& profile_path); | 228 static void LogProfileSyncSignIn(const base::FilePath& profile_path); |
| 211 static void LogProfileUpdate(const base::FilePath& profile_path); | 229 static void LogProfileUpdate(const base::FilePath& profile_path); |
| 212 }; | 230 }; |
| 213 | 231 |
| 214 | 232 |
| 215 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 233 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
| OLD | NEW |