diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-14 20:32:29 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-14 20:32:29 +0000 |
commit | bfb4d6721cbf094b286e36f69bf43aa14d69de9c (patch) | |
tree | ec4b7b22f83a901ebac79ed35aaccc75deda4e8d /chrome/browser/autofill/autofill_metrics_unittest.cc | |
parent | a6fddf4f98b6c8e0a4dbe22bcac6a64dbd82ea75 (diff) | |
download | chromium_src-bfb4d6721cbf094b286e36f69bf43aa14d69de9c.zip chromium_src-bfb4d6721cbf094b286e36f69bf43aa14d69de9c.tar.gz chromium_src-bfb4d6721cbf094b286e36f69bf43aa14d69de9c.tar.bz2 |
[Autofill] Add UMA timing metrics for requestAutocomplete dialog.
Records the duration for which the requestAutocomplete dialog was open.
Also, move a handful of classes into the autofill namespace.
BUG=165570
TEST=unit_tests --gtest_filter=AutofillMetricsTest.RequestAutocompleteDialogClosed
Review URL: https://chromiumcodereview.appspot.com/12091086
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182528 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_metrics_unittest.cc')
-rw-r--r-- | chrome/browser/autofill/autofill_metrics_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/autofill/autofill_metrics_unittest.cc b/chrome/browser/autofill/autofill_metrics_unittest.cc index e7744a7..086c720 100644 --- a/chrome/browser/autofill/autofill_metrics_unittest.cc +++ b/chrome/browser/autofill/autofill_metrics_unittest.cc @@ -262,7 +262,7 @@ class TestAutofillManager : public AutofillManager { DISALLOW_COPY_AND_ASSIGN(TestAutofillManager); }; -class TestAutocheckoutManager : public AutocheckoutManager { +class TestAutocheckoutManager : public autofill::AutocheckoutManager { public: explicit TestAutocheckoutManager(AutofillManager* autofill_manager) : AutocheckoutManager(autofill_manager) { @@ -335,11 +335,11 @@ void AutofillMetricsTest::SetUp() { ChromeRenderViewHostTestHarness::SetUp(); io_thread_.StartIOThread(); - TabAutofillManagerDelegate::CreateForWebContents(web_contents()); + autofill::TabAutofillManagerDelegate::CreateForWebContents(web_contents()); personal_data_.SetBrowserContext(profile); autofill_manager_ = new TestAutofillManager( web_contents(), - TabAutofillManagerDelegate::FromWebContents(web_contents()), + autofill::TabAutofillManagerDelegate::FromWebContents(web_contents()), &personal_data_); file_thread_.Start(); @@ -389,7 +389,7 @@ AutofillMetricsTest::CreateAutocheckoutDelegate( LogAutocheckoutInfoBarMetric(AutofillMetrics::INFOBAR_SHOWN)); GURL url("www.google.com"); content::SSLStatus ssl_status; - return AutocheckoutInfoBarDelegate::Create( + return autofill::AutocheckoutInfoBarDelegate::Create( *metric_logger, url, ssl_status, |