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

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

Issue 345733006: UMA Metrics to track profile deletion, along with signed-in status. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enum for the histogram config Created 6 years, 6 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
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/profiles/profile_metrics.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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 static void LogProfileAvatarSelection(size_t icon_index); 151 static void LogProfileAvatarSelection(size_t icon_index);
152 static void LogProfileDeleteUser(ProfileNetUserCounts metric); 152 static void LogProfileDeleteUser(ProfileNetUserCounts metric);
153 static void LogProfileOpenMethod(ProfileOpen metric); 153 static void LogProfileOpenMethod(ProfileOpen metric);
154 static void LogProfileSwitchGaia(ProfileGaia metric); 154 static void LogProfileSwitchGaia(ProfileGaia metric);
155 static void LogProfileSwitchUser(ProfileOpen metric); 155 static void LogProfileSwitchUser(ProfileOpen metric);
156 static void LogProfileSyncInfo(ProfileSync metric); 156 static void LogProfileSyncInfo(ProfileSync metric);
157 static void LogProfileAuthResult(ProfileAuth metric); 157 static void LogProfileAuthResult(ProfileAuth metric);
158 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric); 158 static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric);
159 static void LogProfileDesktopMenu(ProfileDesktopMenu metric, 159 static void LogProfileDesktopMenu(ProfileDesktopMenu metric,
160 signin::GAIAServiceType gaia_service); 160 signin::GAIAServiceType gaia_service);
161 static void LogProfileDelete(bool profile_was_signed_in);
161 162
162 #if defined(OS_ANDROID) 163 #if defined(OS_ANDROID)
163 static void LogProfileAndroidAccountManagementMenu( 164 static void LogProfileAndroidAccountManagementMenu(
164 ProfileAndroidAccountManagementMenu metric, 165 ProfileAndroidAccountManagementMenu metric,
165 signin::GAIAServiceType gaia_service); 166 signin::GAIAServiceType gaia_service);
166 #endif // defined(OS_ANDROID) 167 #endif // defined(OS_ANDROID)
167 168
168 // These functions should only be called on the UI thread because they hook 169 // These functions should only be called on the UI thread because they hook
169 // into g_browser_process through a helper function. 170 // into g_browser_process through a helper function.
170 static void LogProfileLaunch(Profile* profile); 171 static void LogProfileLaunch(Profile* profile);
171 static void LogProfileSyncSignIn(const base::FilePath& profile_path); 172 static void LogProfileSyncSignIn(const base::FilePath& profile_path);
172 static void LogProfileUpdate(const base::FilePath& profile_path); 173 static void LogProfileUpdate(const base::FilePath& profile_path);
173 }; 174 };
174 175
175 176
176 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 177 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/profiles/profile_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698