| 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 e0a86900c278ded9167a9176179322c6c8556b36..ac558756e007800e12cd49b3d37fe4d8cd30b74c 100644
|
| --- a/components/autofill/core/browser/personal_data_manager.h
|
| +++ b/components/autofill/core/browser/personal_data_manager.h
|
| @@ -355,6 +355,11 @@ class PersonalDataManager : public KeyedService,
|
| // credit cards the user has. On subsequent calls, does nothing.
|
| void LogLocalCreditCardCount() const;
|
|
|
| + // The first time this is called, logs an UMA metric for the number of server
|
| + // credit cards the user has (both masked and unmasked). On subsequent calls,
|
| + // does nothing.
|
| + void LogServerCreditCardCounts() const;
|
| +
|
| // Returns the value of the AutofillEnabled pref.
|
| virtual bool IsAutofillEnabled() const;
|
|
|
| @@ -501,7 +506,11 @@ class PersonalDataManager : public KeyedService,
|
|
|
| // Whether we have already logged the number of local credit cards this
|
| // session.
|
| - mutable bool has_logged_credit_card_count_;
|
| + mutable bool has_logged_local_credit_card_count_;
|
| +
|
| + // Whether we have already logged the number of server credit cards this
|
| + // session.
|
| + mutable bool has_logged_server_credit_card_counts_;
|
|
|
| // An observer to listen for changes to prefs::kAutofillEnabled.
|
| std::unique_ptr<BooleanPrefMember> enabled_pref_;
|
|
|