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

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

Issue 813133003: New Profile metric for Auth Errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ChromeSigninClient handles no ProfileManager for tests Created 5 years, 11 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
« no previous file with comments | « chrome/browser/profiles/profile_metrics.h ('k') | chrome/browser/signin/chrome_signin_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_metrics.cc
diff --git a/chrome/browser/profiles/profile_metrics.cc b/chrome/browser/profiles/profile_metrics.cc
index 0804fd88b8de1a4f9306faa0cec4e890e09404e1..05ac76ba25a4d7c2be066981ab7a7d08eca3e059 100644
--- a/chrome/browser/profiles/profile_metrics.cc
+++ b/chrome/browser/profiles/profile_metrics.cc
@@ -139,6 +139,8 @@ bool ProfileMetrics::CountProfileInformation(ProfileManager* manager,
counts->signedin++;
if (info_cache.IsUsingGAIAPictureOfProfileAtIndex(i))
counts->gaia_icon++;
+ if (info_cache.ProfileIsAuthErrorAtIndex(i))
+ counts->auth_errors++;
}
}
}
@@ -178,6 +180,8 @@ void ProfileMetrics::LogNumberOfProfiles(ProfileManager* manager) {
counts.unused);
UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfSignedInProfilesWithGAIAIcons",
counts.gaia_icon);
+ UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfProfilesWithAuthErrors",
+ counts.auth_errors);
LogLockedProfileInformation(manager);
UpdateReportedOSProfileStatistics(counts.total, counts.signedin);
« no previous file with comments | « chrome/browser/profiles/profile_metrics.h ('k') | chrome/browser/signin/chrome_signin_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698