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

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

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: . 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 unified diff | Download patch
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | components/signin/core/browser/signin_metrics.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" 8 #include "base/time/time.h"
9 9
10 namespace signin_metrics { 10 namespace signin_metrics {
(...skipping 30 matching lines...) Expand all
41 // The sync server caused the profile to be signed out. 41 // The sync server caused the profile to be signed out.
42 SERVER_FORCED_DISABLE, 42 SERVER_FORCED_DISABLE,
43 // The credentials are being transfered to a new profile, so the old one is 43 // The credentials are being transfered to a new profile, so the old one is
44 // signed out. 44 // signed out.
45 TRANSFER_CREDENTIALS, 45 TRANSFER_CREDENTIALS,
46 46
47 // Keep this as the last enum. 47 // Keep this as the last enum.
48 NUM_PROFILE_SIGNOUT_METRICS, 48 NUM_PROFILE_SIGNOUT_METRICS,
49 }; 49 };
50 50
51 // Enum values used for use with "AutoLogin.Reverse" histograms.
52 enum {
53 // The infobar was shown to the user.
54 HISTOGRAM_SHOWN,
55 // The user pressed the accept button to perform the suggested action.
56 HISTOGRAM_ACCEPTED,
57 // The user pressed the reject to turn off the feature.
58 HISTOGRAM_REJECTED,
59 // The user pressed the X button to dismiss the infobar this time.
60 HISTOGRAM_DISMISSED,
61 // The user completely ignored the infoar. Either they navigated away, or
62 // they used the page as is.
63 HISTOGRAM_IGNORED,
64 // The user clicked on the learn more link in the infobar.
65 HISTOGRAM_LEARN_MORE,
66 // The sync was started with default settings.
67 HISTOGRAM_WITH_DEFAULTS,
68 // The sync was started with advanced settings.
69 HISTOGRAM_WITH_ADVANCED,
70 // The sync was started through auto-accept with default settings.
71 HISTOGRAM_AUTO_WITH_DEFAULTS,
72 // The sync was started through auto-accept with advanced settings.
73 HISTOGRAM_AUTO_WITH_ADVANCED,
74 // The sync was aborted with an undo button.
75 HISTOGRAM_UNDO,
76 HISTOGRAM_MAX
77 };
78
79 // Enum values used with the "Signin.OneClickConfirmation" histogram, which
80 // tracks the actions used in the OneClickConfirmation bubble.
81 enum {
82 HISTOGRAM_CONFIRM_SHOWN,
83 HISTOGRAM_CONFIRM_OK,
84 HISTOGRAM_CONFIRM_RETURN,
85 HISTOGRAM_CONFIRM_ADVANCED,
86 HISTOGRAM_CONFIRM_CLOSE,
87 HISTOGRAM_CONFIRM_ESCAPE,
88 HISTOGRAM_CONFIRM_UNDO,
89 HISTOGRAM_CONFIRM_LEARN_MORE,
90 HISTOGRAM_CONFIRM_LEARN_MORE_OK,
91 HISTOGRAM_CONFIRM_LEARN_MORE_RETURN,
92 HISTOGRAM_CONFIRM_LEARN_MORE_ADVANCED,
93 HISTOGRAM_CONFIRM_LEARN_MORE_CLOSE,
94 HISTOGRAM_CONFIRM_LEARN_MORE_ESCAPE,
95 HISTOGRAM_CONFIRM_LEARN_MORE_UNDO,
96 HISTOGRAM_CONFIRM_MAX
97 };
98
99 // Enum valus used with the "Signin.SigninSource" histogram, which tracks the
100 // source that launched a Gaia signin page.
101 enum Source {
102 SOURCE_START_PAGE = 0, // This must be first.
103 SOURCE_NTP_LINK,
104 SOURCE_MENU,
105 SOURCE_SETTINGS,
106 SOURCE_EXTENSION_INSTALL_BUBBLE,
107 SOURCE_APP_LAUNCHER,
108 SOURCE_APPS_PAGE_LINK,
109 SOURCE_BOOKMARK_BUBBLE,
110 SOURCE_AVATAR_BUBBLE_SIGN_IN,
111 SOURCE_AVATAR_BUBBLE_ADD_ACCOUNT,
112 SOURCE_DEVICES_PAGE,
113 SOURCE_REAUTH,
114 SOURCE_UNKNOWN, // This must be last.
115 };
116
117 // Enum values used for use with the "Signin.Reauth" histogram.
118 enum AccountReauth {
119 // The user gave the wrong email when doing a reauthentication.
120 HISTOGRAM_ACCOUNT_MISSMATCH,
121 // The user was shown a reauthentication login screen.
122 HISTOGRAM_REAUTH_SHOWN,
123
124 HISTOGRAM_REAUTH_MAX
125 };
126
51 // Log to UMA histograms and UserCounts stats about a single execution of the 127 // Log to UMA histograms and UserCounts stats about a single execution of the
52 // AccountReconciler. 128 // AccountReconciler.
53 // |total_number_accounts| - How many accounts are in the browser for this 129 // |total_number_accounts| - How many accounts are in the browser for this
54 // profile. 130 // profile.
55 // |count_added_to_cookie_jar| - How many accounts were in the browser but not 131 // |count_added_to_cookie_jar| - How many accounts were in the browser but not
56 // in the cookie jar. 132 // in the cookie jar.
57 // |count_removed_from_cookie_jar| - How many accounts were in the cookie jar 133 // |count_removed_from_cookie_jar| - How many accounts were in the cookie jar
58 // but not in the browser. 134 // but not in the browser.
59 // |primary_accounts_same| - False if the primary account for the cookie jar 135 // |primary_accounts_same| - False if the primary account for the cookie jar
60 // and the token service were different; else true. 136 // and the token service were different; else true.
61 // |is_first_reconcile| - True if these stats are from the first execution of 137 // |is_first_reconcile| - True if these stats are from the first execution of
62 // the AccountReconcilor. 138 // the AccountReconcilor.
63 // |pre_count_gaia_cookies| - How many GAIA cookies were present before 139 // |pre_count_gaia_cookies| - How many GAIA cookies were present before
64 // the AccountReconcilor began modifying the state. 140 // the AccountReconcilor began modifying the state.
65 void LogSigninAccountReconciliation(int total_number_accounts, 141 void LogSigninAccountReconciliation(int total_number_accounts,
66 int count_added_to_cookie_jar, 142 int count_added_to_cookie_jar,
67 int count_removed_from_cookie_jar, 143 int count_removed_from_cookie_jar,
68 bool primary_accounts_same, 144 bool primary_accounts_same,
69 bool is_first_reconcile, 145 bool is_first_reconcile,
70 int pre_count_gaia_cookies); 146 int pre_count_gaia_cookies);
71 147
72 // Track a successful signin. 148 // Track a successful signin.
73 void LogSigninAddAccount(); 149 void LogSigninAddAccount();
74 150
151 // Tracks the original source that showed the signin page.
152 void LogSigninSource(Source source);
153
75 // Track a successful signin of a profile. 154 // Track a successful signin of a profile.
76 void LogSigninProfile(bool is_first_run, base::Time install_date); 155 void LogSigninProfile(bool is_first_run, base::Time install_date);
77 156
78 // Track a profile signout. 157 // Track a profile signout.
79 void LogSignout(ProfileSignout metric); 158 void LogSignout(ProfileSignout metric);
80 159
81 // Tracks whether the external connection results were all fetched before 160 // Tracks whether the external connection results were all fetched before
82 // the reconcilor tried to use them with MergeSession. 161 // the reconcilor tried to use them with MergeSession.
83 // |time_to_check_connections| is the time it took to complete. 162 // |time_to_check_connections| is the time it took to complete.
84 void LogExternalCcResultFetches( 163 void LogExternalCcResultFetches(
85 bool fetches_completed, 164 bool fetches_completed,
86 const base::TimeDelta& time_to_check_connections); 165 const base::TimeDelta& time_to_check_connections);
87 166
88 } // namespace signin_metrics 167 } // namespace signin_metrics
89 168
90 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ 169 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | components/signin/core/browser/signin_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698