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

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

Issue 1392623002: [Autofill] Add metric for profile action on form submitted (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 2 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/personal_data_manager.cc
diff --git a/components/autofill/core/browser/personal_data_manager.cc b/components/autofill/core/browser/personal_data_manager.cc
index 7ebad6e6c6bd877a015341dbbe25d2dee1ea2491..3047044359fc23617b77c77437591cd3d276f9f3 100644
--- a/components/autofill/core/browser/personal_data_manager.cc
+++ b/components/autofill/core/browser/personal_data_manager.cc
@@ -1058,10 +1058,11 @@ std::string PersonalDataManager::MergeProfile(
}
// If the new profile was not merged with an existing one, add it to the list.
- if (!matching_profile_found)
+ if (!matching_profile_found) {
merged_profiles->push_back(new_profile);
-
- AutofillMetrics::LogAutomaticProfileCreation(!matching_profile_found);
+ AutofillMetrics::LogProfileActionOnFormSubmitted(
+ AutofillMetrics::NEW_PROFILE_CREATED);
+ }
return guid;
}
« no previous file with comments | « components/autofill/core/browser/autofill_profile_unittest.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698