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) { |