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 |