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

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

Issue 702483002: On Views, track all opens of the menu from icon AND bubble. Matches Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: noms nits Created 6 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 }; 42 };
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 menu from NTP
53 ICON_AVATAR_BUBBLE, // User opens avatar icon menu from icon 53 ICON_AVATAR_BUBBLE, // User opens the avatar menu from button
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698