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

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

Issue 286163002: UMA for Mirror Feedback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/views/profiles/profile_chooser_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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // User viewed the Upgrade promo card in the user menu. 86 // User viewed the Upgrade promo card in the user menu.
87 PROFILE_ENROLLMENT_SHOW_PREVIEW_PROMO, 87 PROFILE_ENROLLMENT_SHOW_PREVIEW_PROMO,
88 // User selected to view the intro tutorial. 88 // User selected to view the intro tutorial.
89 PROFILE_ENROLLMENT_LAUNCH_LEARN_MORE, 89 PROFILE_ENROLLMENT_LAUNCH_LEARN_MORE,
90 // User opted into New Profile Management via Promo card. 90 // User opted into New Profile Management via Promo card.
91 PROFILE_ENROLLMENT_ACCEPT_NEW_PROFILE_MGMT, 91 PROFILE_ENROLLMENT_ACCEPT_NEW_PROFILE_MGMT,
92 // User closed the Upgrade card. 92 // User closed the Upgrade card.
93 PROFILE_ENROLLMENT_CLOSE_WELCOME_CARD, 93 PROFILE_ENROLLMENT_CLOSE_WELCOME_CARD,
94 // Used disabled New Profile Management. 94 // Used disabled New Profile Management.
95 PROFILE_ENROLLMENT_DISABLE_NEW_PROFILE_MGMT, 95 PROFILE_ENROLLMENT_DISABLE_NEW_PROFILE_MGMT,
96 // Used elected to send feedback.
guohui 2014/05/15 16:52:01 nit: s/used/user/ same at line 94.
Mike Lerman 2014/05/15 17:23:18 Done.
97 PROFILE_ENROLLMENT_SEND_FEEDBACK,
96 NUM_PROFILE_ENROLLMENT_METRICS, 98 NUM_PROFILE_ENROLLMENT_METRICS,
97 }; 99 };
98 100
99 static void UpdateReportedProfilesStatistics(ProfileManager* manager); 101 static void UpdateReportedProfilesStatistics(ProfileManager* manager);
100 102
101 static void LogNumberOfProfiles(ProfileManager* manager); 103 static void LogNumberOfProfiles(ProfileManager* manager);
102 static void LogProfileAddNewUser(ProfileAdd metric); 104 static void LogProfileAddNewUser(ProfileAdd metric);
103 static void LogProfileAvatarSelection(size_t icon_index); 105 static void LogProfileAvatarSelection(size_t icon_index);
104 static void LogProfileDeleteUser(ProfileNetUserCounts metric); 106 static void LogProfileDeleteUser(ProfileNetUserCounts metric);
105 static void LogProfileOpenMethod(ProfileOpen metric); 107 static void LogProfileOpenMethod(ProfileOpen metric);
106 static void LogProfileSwitchGaia(ProfileGaia metric); 108 static void LogProfileSwitchGaia(ProfileGaia metric);
107 static void LogProfileSwitchUser(ProfileOpen metric); 109 static void LogProfileSwitchUser(ProfileOpen metric);
108 static void LogProfileSyncInfo(ProfileSync metric); 110 static void LogProfileSyncInfo(ProfileSync metric);
109 static void LogProfileAuthResult(ProfileAuth metric); 111 static void LogProfileAuthResult(ProfileAuth metric);
110 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric); 112 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric);
111 113
112 // These functions should only be called on the UI thread because they hook 114 // These functions should only be called on the UI thread because they hook
113 // into g_browser_process through a helper function. 115 // into g_browser_process through a helper function.
114 static void LogProfileLaunch(Profile* profile); 116 static void LogProfileLaunch(Profile* profile);
115 static void LogProfileSyncSignIn(const base::FilePath& profile_path); 117 static void LogProfileSyncSignIn(const base::FilePath& profile_path);
116 static void LogProfileUpdate(const base::FilePath& profile_path); 118 static void LogProfileUpdate(const base::FilePath& profile_path);
117 }; 119 };
118 120
119 121
120 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 122 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698