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

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

Issue 466043002: Track when user signs in the profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android doesn't track first run within chrome c++ Created 6 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_
7 7
8 #include "base/time/time.h"
9
8 namespace signin_metrics { 10 namespace signin_metrics {
9 11
10 // Enum for the ways in which primary account detection is done. 12 // Enum for the ways in which primary account detection is done.
11 enum DifferentPrimaryAccounts { 13 enum DifferentPrimaryAccounts {
12 // token and cookie had same primary accounts. 14 // token and cookie had same primary accounts.
13 ACCOUNTS_SAME = 0, 15 ACCOUNTS_SAME = 0,
14 // Deprecated. Indicates different primary accounts. 16 // Deprecated. Indicates different primary accounts.
15 UNUSED_ACCOUNTS_DIFFERENT, 17 UNUSED_ACCOUNTS_DIFFERENT,
16 // No GAIA cookie present, so the primaries are considered different. 18 // No GAIA cookie present, so the primaries are considered different.
17 NO_COOKIE_PRESENT, 19 NO_COOKIE_PRESENT,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void LogSigninAccountReconciliation(int total_number_accounts, 65 void LogSigninAccountReconciliation(int total_number_accounts,
64 int count_added_to_cookie_jar, 66 int count_added_to_cookie_jar,
65 int count_added_to_token, 67 int count_added_to_token,
66 bool primary_accounts_same, 68 bool primary_accounts_same,
67 bool is_first_reconcile, 69 bool is_first_reconcile,
68 int pre_count_gaia_cookies); 70 int pre_count_gaia_cookies);
69 71
70 // Track a successful signin. 72 // Track a successful signin.
71 void LogSigninAddAccount(); 73 void LogSigninAddAccount();
72 74
75 // Track a successful signin of a profile.
76 void LogSigninProfile(bool is_first_run, base::Time install_date);
77
73 // Track a profile signout. 78 // Track a profile signout.
74 void LogSignout(ProfileSignout metric); 79 void LogSignout(ProfileSignout metric);
75 80
76 // Tracks whether the external connection results were all fetched before 81 // Tracks whether the external connection results were all fetched before
77 // the reconcilor tried to use them with MergeSession. 82 // the reconcilor tried to use them with MergeSession.
78 void LogExternalCcResultFetches(bool fetches_completed); 83 void LogExternalCcResultFetches(bool fetches_completed);
79 84
80 } // namespace signin_metrics 85 } // namespace signin_metrics
81 86
82 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ 87 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_
OLDNEW
« no previous file with comments | « components/signin/core/browser/signin_manager.cc ('k') | components/signin/core/browser/signin_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698