Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / profiles / profile_metrics.cc
index b04c237..a829be2 100644 (file)
@@ -107,8 +107,9 @@ enum ProfileAvatar {
   AVATAR_MARGARITA,
   AVATAR_NOTE,
   AVATAR_SUN_CLOUD,
-  AVATAR_UNKNOWN,           // 26
-  AVATAR_GAIA,              // 27
+  AVATAR_PLACEHOLDER,
+  AVATAR_UNKNOWN,           // 27
+  AVATAR_GAIA,              // 28
   NUM_PROFILE_AVATAR_METRICS
 };
 
@@ -237,7 +238,10 @@ void ProfileMetrics::LogProfileAvatarSelection(size_t icon_index) {
     case 25:
       icon_name = AVATAR_SUN_CLOUD;
       break;
-    case 27:
+    case 26:
+      icon_name = AVATAR_PLACEHOLDER;
+      break;
+    case 28:
       icon_name = AVATAR_GAIA;
       break;
     default:  // We should never actually get here.
@@ -285,6 +289,12 @@ void ProfileMetrics::LogProfileAuthResult(ProfileAuth metric) {
                             NUM_PROFILE_AUTH_METRICS);
 }
 
+void ProfileMetrics::LogProfileUpgradeEnrollment(
+    ProfileUpgradeEnrollment metric) {
+  UMA_HISTOGRAM_ENUMERATION("Profile.UpgradeEnrollment", metric,
+                            NUM_PROFILE_ENROLLMENT_METRICS);
+}
+
 void ProfileMetrics::LogProfileLaunch(Profile* profile) {
   base::FilePath profile_path = profile->GetPath();
   UMA_HISTOGRAM_ENUMERATION("Profile.LaunchBrowser",