summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/personal_data_manager.h
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 20:55:10 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 20:55:10 +0000
commit33104a61421827beeb318612afe92c1cf673b6ec (patch)
tree2bc3e0c839b78a77f01e5229958e7727df062bad /chrome/browser/autofill/personal_data_manager.h
parentc92ea3a284db20edcfecb5ff151351e47e1d2e84 (diff)
downloadchromium_src-33104a61421827beeb318612afe92c1cf673b6ec.zip
chromium_src-33104a61421827beeb318612afe92c1cf673b6ec.tar.gz
chromium_src-33104a61421827beeb318612afe92c1cf673b6ec.tar.bz2
Add metric for whether Autofill is enabled or disabled.
BUG=none TEST=unit_tests --gtest_filter=AutofillMetrics* Review URL: http://codereview.chromium.org/6826047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81474 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/personal_data_manager.h')
-rw-r--r--chrome/browser/autofill/personal_data_manager.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/autofill/personal_data_manager.h b/chrome/browser/autofill/personal_data_manager.h
index 890dfd4..7b6299a 100644
--- a/chrome/browser/autofill/personal_data_manager.h
+++ b/chrome/browser/autofill/personal_data_manager.h
@@ -169,15 +169,9 @@ class PersonalDataManager
friend class ProfileImpl;
friend class ProfileSyncServiceAutofillTest;
- // For tests.
- static void set_has_logged_profile_count(bool has_logged_profile_count);
-
PersonalDataManager();
virtual ~PersonalDataManager();
- // Returns the profile of the tab contents.
- Profile* profile();
-
// Loads the saved profiles from the web database.
virtual void LoadProfiles();
@@ -211,6 +205,9 @@ class PersonalDataManager
// profiles the user has. On subsequent calls, does nothing.
void LogProfileCount() const;
+ // Returns the value of the AutofillEnabled pref.
+ virtual bool IsAutofillEnabled() const;
+
// For tests.
const AutofillMetrics* metric_logger() const;
void set_metric_logger(const AutofillMetrics* metric_logger);
@@ -252,6 +249,9 @@ class PersonalDataManager
// For logging UMA metrics. Overridden by metrics tests.
scoped_ptr<const AutofillMetrics> metric_logger_;
+ // Whether we have already logged the number of profiles this session.
+ mutable bool has_logged_profile_count_;
+
DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
};