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

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

Issue 338993007: Track when and how a profile is signed out via UMA. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: SignOut() param in Android tests Created 6 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/identity/account_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/signin/signin_manager_android.cc
diff --git a/chrome/browser/android/signin/signin_manager_android.cc b/chrome/browser/android/signin/signin_manager_android.cc
index 37cd951f34e58577f0e80abcd97b9366eb280ce0..858384cc5de426ab6f1e25782259b05be28faad6 100644
--- a/chrome/browser/android/signin/signin_manager_android.cc
+++ b/chrome/browser/android/signin/signin_manager_android.cc
@@ -23,6 +23,7 @@
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "components/signin/core/browser/signin_manager.h"
+#include "components/signin/core/browser/signin_metrics.h"
#include "components/signin/core/common/profile_management_switches.h"
#include "jni/SigninManager_jni.h"
@@ -133,7 +134,8 @@ void SigninManagerAndroid::OnSignInCompleted(JNIEnv* env,
}
void SigninManagerAndroid::SignOut(JNIEnv* env, jobject obj) {
- SigninManagerFactory::GetForProfile(profile_)->SignOut();
+ SigninManagerFactory::GetForProfile(profile_)->SignOut(
+ signin_metrics::USER_CLICKED_SIGNOUT_SETTINGS);
}
base::android::ScopedJavaLocalRef<jstring>
« no previous file with comments | « no previous file | chrome/browser/extensions/api/identity/account_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698