| Index: components/autofill/core/browser/personal_data_manager.h
|
| diff --git a/components/autofill/core/browser/personal_data_manager.h b/components/autofill/core/browser/personal_data_manager.h
|
| index 68515e51f6144d00ecf8d37eb0a95b6491ce6327..2522fc219f49b3755ed0f7d4961a8981b9bb12d1 100644
|
| --- a/components/autofill/core/browser/personal_data_manager.h
|
| +++ b/components/autofill/core/browser/personal_data_manager.h
|
| @@ -294,10 +294,14 @@ class PersonalDataManager : public KeyedService,
|
| // Notifies observers that personal data has changed.
|
| void NotifyPersonalDataChanged();
|
|
|
| - // The first time this is called, logs an UMA metrics for the number of
|
| + // The first time this is called, logs an UMA metric for the number of
|
| // profiles the user has. On subsequent calls, does nothing.
|
| void LogProfileCount() const;
|
|
|
| + // The first time this is called, logs an UMA metric for the number of local
|
| + // credit cards the user has. On subsequent calls, does nothing.
|
| + void LogLocalCreditCardCount() const;
|
| +
|
| // Returns the value of the AutofillEnabled pref.
|
| virtual bool IsAutofillEnabled() const;
|
|
|
| @@ -407,6 +411,10 @@ class PersonalDataManager : public KeyedService,
|
| // Whether we have already logged the number of profiles this session.
|
| mutable bool has_logged_profile_count_;
|
|
|
| + // Whether we have already logged the number of local credit cards this
|
| + // session.
|
| + mutable bool has_logged_credit_card_count_;
|
| +
|
| // An observer to listen for changes to prefs::kAutofillEnabled.
|
| scoped_ptr<BooleanPrefMember> enabled_pref_;
|
|
|
|
|