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

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

Issue 288493008: UMA Metrics for the user menu, including vasquette-detection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split user-menu data based on GAIA service type Created 6 years, 7 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 a829be238793e76afa1d163b7239a18873845578..bf66d08a2559c7f6c9d506154a170097c9427daf 100644
--- a/chrome/browser/profiles/profile_metrics.cc
+++ b/chrome/browser/profiles/profile_metrics.cc
@@ -11,6 +11,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_info_cache.h"
#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/browser/signin/signin_header_helper.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/installer/util/google_update_settings.h"
#include "content/public/browser/browser_thread.h"
@@ -295,6 +296,36 @@ void ProfileMetrics::LogProfileUpgradeEnrollment(
NUM_PROFILE_ENROLLMENT_METRICS);
}
+void ProfileMetrics::LogProfileDesktopMenu(ProfileDesktopMenu metric,
+ signin::GAIA_SERVICE_TYPE gaia_service) {
+ switch (gaia_service) {
+ case signin::GAIA_SERVICE_TYPE_NONE:
+ UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.Button", metric,
+ NUM_PROFILE_DESKTOP_MENU_METRICS);
+ break;
+ case signin::GAIA_SERVICE_TYPE_SIGNOUT:
+ UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIASignout", metric,
+ NUM_PROFILE_DESKTOP_MENU_METRICS);
+ break;
+ case signin::GAIA_SERVICE_TYPE_SIGNOUTOPTIONS_INCOGNITO:
+ UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIASignoutIncognito",
+ metric, NUM_PROFILE_DESKTOP_MENU_METRICS);
+ break;
+ case signin::GAIA_SERVICE_TYPE_ADDSESSION:
+ UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIAAddSession", metric,
+ NUM_PROFILE_DESKTOP_MENU_METRICS);
+ break;
+ case signin::GAIA_SERVICE_TYPE_REAUTH:
+ UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIAReAuth", metric,
+ NUM_PROFILE_DESKTOP_MENU_METRICS);
+ break;
+ case signin::GAIA_SERVICE_TYPE_DEFAULT:
+ UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIADefault", metric,
+ NUM_PROFILE_DESKTOP_MENU_METRICS);
+ break;
+ }
+}
+
void ProfileMetrics::LogProfileLaunch(Profile* profile) {
base::FilePath profile_path = profile->GetPath();
UMA_HISTOGRAM_ENUMERATION("Profile.LaunchBrowser",

Powered by Google App Engine
This is Rietveld 408576698