diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-13 01:50:56 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-13 01:50:56 +0000 |
commit | bb8c4fa05af6447e47facd049ed14ec9bb74d22d (patch) | |
tree | 00b6474c9d5b684dab75b43ba153a816cf08833d /chrome/browser/autofill/autofill_manager.h | |
parent | 88b9db7d713a9e156fa66694844c4d98ee48d875 (diff) | |
download | chromium_src-bb8c4fa05af6447e47facd049ed14ec9bb74d22d.zip chromium_src-bb8c4fa05af6447e47facd049ed14ec9bb74d22d.tar.gz chromium_src-bb8c4fa05af6447e47facd049ed14ec9bb74d22d.tar.bz2 |
Add autofill metrics to dig into the failure case.
BUG=none
TEST=unit_tests --gtest_filter=AutoFillMetricsTest.QualityMetricsForFailure
Review URL: http://codereview.chromium.org/5963004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71282 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_manager.h')
-rw-r--r-- | chrome/browser/autofill/autofill_manager.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/autofill/autofill_manager.h b/chrome/browser/autofill/autofill_manager.h index 08be41c..76ed0d7 100644 --- a/chrome/browser/autofill/autofill_manager.h +++ b/chrome/browser/autofill/autofill_manager.h @@ -91,6 +91,8 @@ class AutoFillManager : public IPC::Channel::Listener, } void set_metric_logger(const AutoFillMetrics* metric_logger); + ScopedVector<FormStructure>* form_structures() { return &form_structures_; } + // Maps GUIDs to and from IDs that are used to identify profiles and credit // cards sent to and from the renderer process. virtual int GUIDToID(const std::string& guid); @@ -172,7 +174,8 @@ class AutoFillManager : public IPC::Channel::Listener, // Uses existing personal data to determine possible field types for the // |upload_form_structure_|. - void DeterminePossibleFieldTypesForUpload(); + void DeterminePossibleFieldTypesForUpload( + const FormStructure* cached_upload_form_structure); // The TabContents hosting this AutoFillManager. // Weak reference. @@ -224,6 +227,7 @@ class AutoFillManager : public IPC::Channel::Listener, FRIEND_TEST_ALL_PREFIXES(AutoFillMetricsTest, QualityMetrics); FRIEND_TEST_ALL_PREFIXES(AutoFillMetricsTest, NoQualityMetricsForNonAutoFillableForms); + FRIEND_TEST_ALL_PREFIXES(AutoFillMetricsTest, QualityMetricsForFailure); DISALLOW_COPY_AND_ASSIGN(AutoFillManager); }; |