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

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

Issue 8790010: Adding in metrics for GAIA photo info. Also, fixing avatar logging to only log when the user chan... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
===================================================================
--- chrome/browser/profiles/profile_metrics.cc (revision 112673)
+++ chrome/browser/profiles/profile_metrics.cc (working copy)
@@ -113,6 +113,9 @@
case 25:
icon_name = AVATAR_SUN_CLOUD;
break;
+ case 27:
+ icon_name = AVATAR_GAIA;
+ break;
default: // We should never actually get here, but just in case
Ilya Sherman 2011/12/03 02:31:13 nit: Perhaps add a NOTREACHED() stmt here?
rpetterson 2011/12/05 20:27:14 Done.
icon_name = AVATAR_UNKNOWN;
break;
@@ -164,3 +167,9 @@
GetProfileType(profile_path),
NUM_PROFILE_TYPE_METRICS);
}
+
+void ProfileMetrics::LogProfileSwitchGaia(ProfileGaia metric) {
+ UMA_HISTOGRAM_ENUMERATION("Profile.SwitchGaiaPhotoSettings",
+ metric,
+ NUM_PROFILE_GAIA_METRICS);
+}

Powered by Google App Engine
This is Rietveld 408576698