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

Unified Diff: chrome/browser/profiles/profile_metrics.cc

Issue 1016113002: Instrument "Remove this person" in user manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback/Naming tweaks 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_metrics.cc
diff --git a/chrome/browser/profiles/profile_metrics.cc b/chrome/browser/profiles/profile_metrics.cc
index 6dfcf73c00b427620233ea57f637a11da634bcb7..56080e5cfa8511c54fb8bd6605a60c6681af94b7 100644
--- a/chrome/browser/profiles/profile_metrics.cc
+++ b/chrome/browser/profiles/profile_metrics.cc
@@ -329,8 +329,12 @@ void ProfileMetrics::LogProfileDeleteUser(ProfileDelete metric) {
DCHECK(metric < NUM_DELETE_PROFILE_METRICS);
UMA_HISTOGRAM_ENUMERATION("Profile.DeleteProfileAction", metric,
NUM_DELETE_PROFILE_METRICS);
- UMA_HISTOGRAM_ENUMERATION("Profile.NetUserCount", PROFILE_DELETED,
- NUM_PROFILE_NET_METRICS);
+ if (metric != DELETE_PROFILE_USER_MANAGER_SHOW_WARNING &&
+ metric != DELETE_PROFILE_SETTINGS_SHOW_WARNING) {
+ // If a user was actually deleted, update the net user count.
+ UMA_HISTOGRAM_ENUMERATION("Profile.NetUserCount", PROFILE_DELETED,
+ NUM_PROFILE_NET_METRICS);
+ }
}
void ProfileMetrics::LogProfileOpenMethod(ProfileOpen metric) {

Powered by Google App Engine
This is Rietveld 408576698