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

Unified Diff: chrome/browser/autofill/autofill_metrics.h

Issue 12588002: [Autofill] Add user type metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment cleanup Created 7 years, 9 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
Index: chrome/browser/autofill/autofill_metrics.h
diff --git a/chrome/browser/autofill/autofill_metrics.h b/chrome/browser/autofill/autofill_metrics.h
index dad70555894486f6e8da0ccf3ca64524589f8427..6c0887336ba5512dd73f2c7843b77628e3489c30 100644
--- a/chrome/browser/autofill/autofill_metrics.h
+++ b/chrome/browser/autofill/autofill_metrics.h
@@ -64,6 +64,22 @@ class AutofillMetrics {
NUM_DIALOG_SECURITY_METRICS
};
+ // The initial state of user that's interacting with a freshly shown
+ // requestAutocomplete or Autocheckout dialog.
+ enum DialogInitialUserStateMetric {
+ // User not signed in, no verified Autofill profiles.
+ DIALOG_NEW_USER_NOT_SIGNED_IN = 0,
+ // User signed in, no Wallet items, no verified Autofill profiles.
+ DIALOG_NEW_USER_SIGNED_IN,
+ // User signed in, no Wallet items, has verified Autofill profiles.
+ DIALOG_AUTOFILL_USER_SIGNED_IN,
+ // User signed in, has Wallet items.
+ DIALOG_WALLET_USER_SIGNED_IN,
+ // User not signed in, has verified Autofill profiles.
+ DIALOG_AUTOFILL_USER_NOT_SIGNED_IN,
+ NUM_DIALOG_INITIAL_USER_STATE_METRICS
+ };
+
enum InfoBarMetric {
INFOBAR_SHOWN = 0, // We showed an infobar, e.g. prompting to save credit
// card info.
@@ -247,6 +263,13 @@ class AutofillMetrics {
autofill::DialogType dialog_type,
DialogDismissalAction dismissal_action) const;
+ // This should be called as soon as the user's signed-in status and Wallet
+ // item count is known. Records that a user starting out in |user_state| is
+ // interacting with a dialog of |dialog_type|.
+ virtual void LogDialogInitialUserState(
+ autofill::DialogType dialog_type,
+ DialogInitialUserStateMetric user_type) const;
+
// Logs |metric| to the Wallet errors histogram for |dialog_type|.
virtual void LogWalletErrorMetric(autofill::DialogType dialog_type,
WalletErrorMetric metric) const;

Powered by Google App Engine
This is Rietveld 408576698