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

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

Issue 777143003: Clean up straggler classes to use embedded signin in page in the new profiles world. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: alexei & peter nits Created 6 years 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 0804fd88b8de1a4f9306faa0cec4e890e09404e1..72c76ddff0e096be3ef2ab163e46d6d42118b4ae 100644
--- a/chrome/browser/profiles/profile_metrics.cc
+++ b/chrome/browser/profiles/profile_metrics.cc
@@ -12,6 +12,7 @@
#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/browser/ui/sync/one_click_signin_histogram.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/installer/util/google_update_settings.h"
#include "content/public/browser/browser_thread.h"
@@ -467,3 +468,9 @@ void ProfileMetrics::LogProfileUpdate(const base::FilePath& profile_path) {
GetProfileType(profile_path),
NUM_PROFILE_TYPE_METRICS);
}
+
+void ProfileMetrics::LogSigninSource(signin::Source source) {
+ UMA_HISTOGRAM_ENUMERATION("Signin.SigninSource",
+ source,
+ one_click_signin::HISTOGRAM_MAX);
+}

Powered by Google App Engine
This is Rietveld 408576698