Chromium Code Reviews| Index: components/autofill/browser/autofill_metrics.cc |
| diff --git a/components/autofill/browser/autofill_metrics.cc b/components/autofill/browser/autofill_metrics.cc |
| index 11530a6ce54836a46a08ecfcc9f4fb38ac19788e..8154280af863167ddb73b8a6fe2e4b95c9ca558b 100644 |
| --- a/components/autofill/browser/autofill_metrics.cc |
| +++ b/components/autofill/browser/autofill_metrics.cc |
| @@ -296,6 +296,14 @@ void AutofillMetrics::LogCreditCardInfoBarMetric(InfoBarMetric metric) const { |
| NUM_INFO_BAR_METRICS); |
| } |
| +void AutofillMetrics::LogDialogInitialUserState( |
| + autofill::DialogType dialog_type, |
| + DialogInitialUserStateMetric user_type) const { |
|
Dan Beam
2013/03/12 14:59:32
DCHECK_NE(UNKNOWN_TYPE, user_type);
Ilya Sherman
2013/03/12 20:51:27
This DCHECK wouldn't be valid, since it's possible
|
| + std::string name = GetPrefixForDialogType(dialog_type) + ".InitialUserState"; |
| + LogUMAHistogramEnumeration( |
| + name, user_type, NUM_DIALOG_INITIAL_USER_STATE_METRICS); |
| +} |
| + |
| void AutofillMetrics::LogDialogSecurityMetric( |
| autofill::DialogType dialog_type, |
| DialogSecurityMetric metric) const { |