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

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: 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 cc4e56dd6a07782613619c91270df1c72f1e561e..f53654878eb4b556cd85c0da7be034cc4f8236f9 100644
--- a/components/autofill/core/browser/personal_data_manager.cc
+++ b/components/autofill/core/browser/personal_data_manager.cc
@@ -1059,10 +1059,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;
}

Powered by Google App Engine
This is Rietveld 408576698