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

Unified Diff: components/autofill/core/browser/autofill_manager_unittest.cc

Issue 2866993002: Logs boolean UMA to track if user modified profile before credit card (Closed)
Patch Set: Logs boolean UMA to track if user modified profile before credit card form submission. Created 3 years, 7 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/autofill_manager_unittest.cc
diff --git a/components/autofill/core/browser/autofill_manager_unittest.cc b/components/autofill/core/browser/autofill_manager_unittest.cc
index 4b3a6997d985291896244bcfa28e94ffe4b09314..be3d39fdf27a42da5252d904b5e263ea8c9ac145 100644
--- a/components/autofill/core/browser/autofill_manager_unittest.cc
+++ b/components/autofill/core/browser/autofill_manager_unittest.cc
@@ -4677,6 +4677,9 @@ TEST_F(AutofillManagerTest, UploadCreditCard) {
AutofillMetrics::UPLOAD_OFFERED);
// Verify that the correct UKM was logged.
ExpectCardUploadDecisionUkm(AutofillMetrics::UPLOAD_OFFERED);
+ // Verify the histogram entry for recent profile modification.
+ histogram_tester.ExpectUniqueSample(
+ "Autofill.HasModifiedProfile.CreditCardFormSubmission", true, 1);
}
TEST_F(AutofillManagerTest, UploadCreditCardAndSaveCopy) {
@@ -5201,6 +5204,9 @@ TEST_F(AutofillManagerTest, UploadCreditCard_NoRecentlyUsedProfile) {
// Verify that the correct UKM was logged.
ExpectCardUploadDecisionUkm(
AutofillMetrics::UPLOAD_NOT_OFFERED_NO_RECENTLY_USED_ADDRESS);
+ // Verify the histogram entry for recent profile modification.
+ histogram_tester.ExpectUniqueSample(
+ "Autofill.HasModifiedProfile.CreditCardFormSubmission", false, 1);
}
TEST_F(AutofillManagerTest,
« no previous file with comments | « components/autofill/core/browser/autofill_manager.cc ('k') | components/autofill/core/browser/autofill_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698