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

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

Issue 944563002: Fix fast user switcher appearance when empty. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 }; 48 };
49 49
50 enum ProfileDelete { 50 enum ProfileDelete {
51 DELETE_PROFILE_SETTINGS = 0, // Delete profile from settings page. 51 DELETE_PROFILE_SETTINGS = 0, // Delete profile from settings page.
52 DELETE_PROFILE_USER_MANAGER, // Delete profile from User Manager. 52 DELETE_PROFILE_USER_MANAGER, // Delete profile from User Manager.
53 NUM_DELETE_PROFILE_METRICS 53 NUM_DELETE_PROFILE_METRICS
54 }; 54 };
55 55
56 // Enum for counting the ways user profiles and menus were opened. 56 // Enum for counting the ways user profiles and menus were opened.
57 enum ProfileOpen { 57 enum ProfileOpen {
58 NTP_AVATAR_BUBBLE = 0, // User opens avatar menu from NTP 58 // User opens avatar menu from NTP.
59 ICON_AVATAR_BUBBLE, // User opens the avatar menu from button 59 NTP_AVATAR_BUBBLE = 0,
60 SWITCH_PROFILE_ICON, // User switches profiles from icon menu 60 // User opens the avatar menu from button.
61 SWITCH_PROFILE_MENU, // User switches profiles from menu bar 61 ICON_AVATAR_BUBBLE,
62 SWITCH_PROFILE_DOCK, // User switches profiles from dock (Mac-only) 62 // User switches profiles from icon menu.
63 OPEN_USER_MANAGER, // User opens the User Manager 63 SWITCH_PROFILE_ICON,
64 SWITCH_PROFILE_MANAGER, // User switches profiles from the User Manager 64 // User switches profiles from menu bar.
65 SWITCH_PROFILE_UNLOCK, // User switches to lockd profile via User Manager 65 SWITCH_PROFILE_MENU,
66 SWITCH_PROFILE_GUEST, // User switches to guest profile 66 // User switches profiles from dock (Mac-only).
67 SWITCH_PROFILE_DOCK,
68 // User opens the User Manager.
69 OPEN_USER_MANAGER,
70 // User switches profiles from the User Manager.
71 SWITCH_PROFILE_MANAGER,
72 // User switches to locked profile via User Manager.
73 SWITCH_PROFILE_UNLOCK,
74 // User switches to guest profile.
75 SWITCH_PROFILE_GUEST,
76 // User switches profiles from the Avatar Menu fast user switcher.
Mike Lerman 2015/02/20 14:40:57 s/Avatar Menu/User Menu
anthonyvd 2015/02/20 15:01:31 Done.
77 SWITCH_PROFILE_FAST_SWITCHER,
Alexei Svitkine (slow) 2015/02/19 22:24:28 Please update histograms.xml' definition of this e
anthonyvd 2015/02/20 15:01:31 Done.
67 NUM_PROFILE_OPEN_METRICS 78 NUM_PROFILE_OPEN_METRICS
68 }; 79 };
69 80
70 // Enum for getting net counts for adding and deleting users. 81 // Enum for getting net counts for adding and deleting users.
71 enum ProfileNetUserCounts { 82 enum ProfileNetUserCounts {
72 ADD_NEW_USER = 0, // Total count of add new user 83 ADD_NEW_USER = 0, // Total count of add new user
73 PROFILE_DELETED, // User deleted a profile 84 PROFILE_DELETED, // User deleted a profile
74 NUM_PROFILE_NET_METRICS 85 NUM_PROFILE_NET_METRICS
75 }; 86 };
76 87
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 246
236 // These functions should only be called on the UI thread because they hook 247 // These functions should only be called on the UI thread because they hook
237 // into g_browser_process through a helper function. 248 // into g_browser_process through a helper function.
238 static void LogProfileLaunch(Profile* profile); 249 static void LogProfileLaunch(Profile* profile);
239 static void LogProfileSyncSignIn(const base::FilePath& profile_path); 250 static void LogProfileSyncSignIn(const base::FilePath& profile_path);
240 static void LogProfileUpdate(const base::FilePath& profile_path); 251 static void LogProfileUpdate(const base::FilePath& profile_path);
241 }; 252 };
242 253
243 254
244 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 255 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698