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

Side by Side Diff: components/signin/core/browser/signin_metrics.cc

Issue 270673003: UMA metrics - number of accounts per profile and account reconciler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Signin Metrics becomes a namespace; formatting nits 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/signin/core/browser/signin_metrics.h"
6
7 #include "base/logging.h"
8 #include "base/metrics/histogram.h"
9 #include "base/metrics/user_metrics.h"
10
11 namespace signin_metrics {
12
13 void LogSigninAccountReconciliation(int total_number_accounts,
14 int count_added_to_cookie_jar,
15 int count_added_to_token,
16 bool primary_accounts_same,
17 bool is_first_reconcile) {
18 UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfAccountsPerProfile",
19 total_number_accounts);
20 // We want to include zeroes in the counts of added accounts to easily
21 // capture _relatively_ how often we merge accounts.
22 if (is_first_reconcile || count_added_to_cookie_jar ||
23 count_added_to_token) {
Alexei Svitkine (slow) 2014/05/08 14:39:29 It seems kind of weird to log a 0 in some cases an
Mike Lerman 2014/05/08 18:23:14 My concern is that every execution of the account
24 UMA_HISTOGRAM_COUNTS_100("Signin.ReconcilerAddedToCookieJar",
25 count_added_to_cookie_jar);
26 UMA_HISTOGRAM_COUNTS_100("Signin.ReconcilerAddedToChrome",
27 count_added_to_token);
28 }
29 if (primary_accounts_same)
30 UMA_HISTOGRAM_BOOLEAN("Signin.ReconcilerDifferentPrimaryAccounts", true);
Alexei Svitkine (slow) 2014/05/08 14:39:29 Consider logging both true and false here, so that
Mike Lerman 2014/05/08 18:23:14 I was going to use the total number of count in Pr
31 }
32
33 } // namespace signin_metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698