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

Unified Diff: chrome/browser/android/signin/account_management_screen_helper.cc

Issue 304983005: [Android][Mirror] UMA stats for Account management screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. 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/android/signin/account_management_screen_helper.cc
diff --git a/chrome/browser/android/signin/account_management_screen_helper.cc b/chrome/browser/android/signin/account_management_screen_helper.cc
index 5d62a6ad9d1c6c416d05760e0b1c22d0c5895297..d0bfa0fc5c597411fa6a38388310067cdb437483 100644
--- a/chrome/browser/android/signin/account_management_screen_helper.cc
+++ b/chrome/browser/android/signin/account_management_screen_helper.cc
@@ -8,18 +8,30 @@
#include "base/android/jni_string.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_android.h"
+#include "chrome/browser/profiles/profile_metrics.h"
#include "jni/AccountManagementScreenHelper_jni.h"
// static
void AccountManagementScreenHelper::OpenAccountManagementScreen(
- Profile* profile) {
+ Profile* profile,
+ signin::GAIAServiceType service_type) {
DCHECK(profile);
DCHECK(ProfileAndroid::FromProfile(profile));
Java_AccountManagementScreenHelper_openAccountManagementScreen(
base::android::AttachCurrentThread(),
base::android::GetApplicationContext(),
- ProfileAndroid::FromProfile(profile)->GetJavaObject().obj());
+ ProfileAndroid::FromProfile(profile)->GetJavaObject().obj(),
+ static_cast<int>(service_type));
+}
+
+static void LogEvent(JNIEnv* env,
+ jclass clazz,
+ jint metric,
+ jint gaiaServiceType) {
+ ProfileMetrics::LogProfileAndroidAccountManagementMenu(
+ static_cast<ProfileMetrics::ProfileAndroidAccountManagementMenu>(metric),
+ static_cast<signin::GAIAServiceType>(gaiaServiceType));
}
// static
« no previous file with comments | « chrome/browser/android/signin/account_management_screen_helper.h ('k') | chrome/browser/profiles/profile_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698