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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc

Issue 12588002: [Autofill] Add user type metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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: chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
index a3b49efc8b4cffac0314a4633327912b046783ae..73263ed35c8a11142b5690e7f752e54fe2170a6d 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
@@ -145,13 +145,12 @@ class AutofillDialogControllerTest : public testing::Test {
content::WebContentsTester::CreateTestWebContents(profile(), NULL));
base::Callback<void(const FormStructure*)> callback;
- AutofillMetrics metrics;
controller_ = new TestAutofillDialogController(
test_web_contents_.get(),
form_data,
GURL(),
content::SSLStatus(),
- metrics,
+ metric_logger_,
DIALOG_TYPE_REQUEST_AUTOCOMPLETE,
callback);
controller_->Show();
@@ -181,6 +180,9 @@ class AutofillDialogControllerTest : public testing::Test {
scoped_ptr<content::WebContents> test_web_contents_;
+ // Must outlive the controller.
+ AutofillMetrics metric_logger_;
+
DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerTest);
};
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc ('k') | components/autofill/browser/autofill_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698