Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Side by Side Diff: chrome/browser/profiles/profile_metrics.h

Issue 659493003: Final step of the java_cpp_template -> java_cpp_enum migration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mmenke+yfriedman feedback + more aosp fixes + don't run tests as part of the build Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
127 enum ProfileAndroidAccountManagementMenu { 131 enum ProfileAndroidAccountManagementMenu {
128 132 // User arrived at the Account management screen.
129 #define PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU(label, value) \ 133 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_VIEW = 0,
130 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_##label = value, 134 // User arrived at the Account management screen, and clicked Add account.
131 #include "profile_metrics_list.h" 135 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_ADD_ACCOUNT = 1,
132 #undef PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU 136 // User arrived at the Account management screen, and clicked Go incognito.
133 137 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_GO_INCOGNITO = 2,
138 // User arrived at the Account management screen, and clicked on primary.
139 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_CLICK_PRIMARY_ACCOUNT = 3,
140 // User arrived at the Account management screen, and clicked on secondary.
141 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_CLICK_SECONDARY_ACCOUNT = 4,
142 // User arrived at the Account management screen, toggled Chrome signout.
143 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_TOGGLE_SIGNOUT = 5,
144 // User toggled Chrome signout, and clicked Signout.
145 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_SIGNOUT_SIGNOUT = 6,
146 // User toggled Chrome signout, and clicked Cancel.
147 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_SIGNOUT_CANCEL = 7,
148 // User arrived at the android Account management screen directly from some
149 // Gaia requests.
150 PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_DIRECT_ADD_ACCOUNT = 8,
134 NUM_PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_METRICS, 151 NUM_PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_METRICS,
135 }; 152 };
136 #endif // defined(OS_ANDROID) 153 #endif // defined(OS_ANDROID)
137 154
138 // Enum for tracking user interactions with the 'Not You?' bubble that users 155 // Enum for tracking user interactions with the 'Not You?' bubble that users
139 // can navigate to from the Upgrade bubble after upgrade. 156 // can navigate to from the Upgrade bubble after upgrade.
140 enum ProfileNewAvatarMenuNotYou { 157 enum ProfileNewAvatarMenuNotYou {
141 // User views the 'Not You?' bubble. 158 // User views the 'Not You?' bubble.
142 PROFILE_AVATAR_MENU_NOT_YOU_VIEW = 0, 159 PROFILE_AVATAR_MENU_NOT_YOU_VIEW = 0,
143 // User selects back from within the 'Not You?' bubble. 160 // User selects back from within the 'Not You?' bubble.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 223
207 // These functions should only be called on the UI thread because they hook 224 // These functions should only be called on the UI thread because they hook
208 // into g_browser_process through a helper function. 225 // into g_browser_process through a helper function.
209 static void LogProfileLaunch(Profile* profile); 226 static void LogProfileLaunch(Profile* profile);
210 static void LogProfileSyncSignIn(const base::FilePath& profile_path); 227 static void LogProfileSyncSignIn(const base::FilePath& profile_path);
211 static void LogProfileUpdate(const base::FilePath& profile_path); 228 static void LogProfileUpdate(const base::FilePath& profile_path);
212 }; 229 };
213 230
214 231
215 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 232 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698