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

Unified Diff: components/autofill/core/browser/personal_data_manager.h

Issue 1839583003: [Autofill] Log the number of stored local credit cards (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 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: 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_;

Powered by Google App Engine
This is Rietveld 408576698