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

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

Issue 1016113002: Instrument "Remove this person" in user manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Log showing profile deletion warning in settings page. Created 5 years, 9 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 30 matching lines...) Expand all
41 enum ProfileAdd { 41 enum ProfileAdd {
42 ADD_NEW_USER_ICON = 0, // User adds new user from icon menu 42 ADD_NEW_USER_ICON = 0, // User adds new user from icon menu
43 ADD_NEW_USER_MENU, // User adds new user from menu bar 43 ADD_NEW_USER_MENU, // User adds new user from menu bar
44 ADD_NEW_USER_DIALOG, // User adds new user from create-profile dialog 44 ADD_NEW_USER_DIALOG, // User adds new user from create-profile dialog
45 ADD_NEW_USER_MANAGER, // User adds new user from User Manager 45 ADD_NEW_USER_MANAGER, // User adds new user from User Manager
46 ADD_NEW_USER_LAST_DELETED, // Auto-created after deleting last user 46 ADD_NEW_USER_LAST_DELETED, // Auto-created after deleting last user
47 NUM_PROFILE_ADD_METRICS 47 NUM_PROFILE_ADD_METRICS
48 }; 48 };
49 49
50 enum ProfileDelete { 50 enum ProfileDelete {
51 DELETE_PROFILE_SETTINGS = 0, // Delete profile from settings page. 51 // Delete profile from settings page.
52 DELETE_PROFILE_USER_MANAGER, // Delete profile from User Manager. 52 DELETE_PROFILE_SETTINGS = 0,
53 // Delete profile from User Manager.
54 DELETE_PROFILE_USER_MANAGER,
55 // Show the delete profile warning in the User Manager.
56 DELETE_PROFILE_USER_MANAGER_SHOW_WARNING,
57 // Show the delete profile warning in the Settings page.
58 DELETE_PROFILE_SETTINGS_SHOW_WARNING,
53 NUM_DELETE_PROFILE_METRICS 59 NUM_DELETE_PROFILE_METRICS
54 }; 60 };
55 61
56 // Enum for counting the ways user profiles and menus were opened. 62 // Enum for counting the ways user profiles and menus were opened.
57 enum ProfileOpen { 63 enum ProfileOpen {
58 NTP_AVATAR_BUBBLE = 0, // User opens avatar menu from NTP 64 NTP_AVATAR_BUBBLE = 0, // User opens avatar menu from NTP
59 ICON_AVATAR_BUBBLE, // User opens the avatar menu from button 65 ICON_AVATAR_BUBBLE, // User opens the avatar menu from button
60 SWITCH_PROFILE_ICON, // User switches profiles from icon menu 66 SWITCH_PROFILE_ICON, // User switches profiles from icon menu
61 SWITCH_PROFILE_MENU, // User switches profiles from menu bar 67 SWITCH_PROFILE_MENU, // User switches profiles from menu bar
62 SWITCH_PROFILE_DOCK, // User switches profiles from dock (Mac-only) 68 SWITCH_PROFILE_DOCK, // User switches profiles from dock (Mac-only)
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 241
236 // These functions should only be called on the UI thread because they hook 242 // These functions should only be called on the UI thread because they hook
237 // into g_browser_process through a helper function. 243 // into g_browser_process through a helper function.
238 static void LogProfileLaunch(Profile* profile); 244 static void LogProfileLaunch(Profile* profile);
239 static void LogProfileSyncSignIn(const base::FilePath& profile_path); 245 static void LogProfileSyncSignIn(const base::FilePath& profile_path);
240 static void LogProfileUpdate(const base::FilePath& profile_path); 246 static void LogProfileUpdate(const base::FilePath& profile_path);
241 }; 247 };
242 248
243 249
244 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 250 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_metrics.cc » ('j') | chrome/browser/resources/options/manage_profile_overlay.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698