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

Side by Side Diff: components/autofill/core/browser/autofill_metrics.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/core/browser/autofill_metrics.h" 5 #include "components/autofill/core/browser/autofill_metrics.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 } 612 }
613 613
614 // static 614 // static
615 void AutofillMetrics::LogNumberOfProfilesAtAutofillableFormSubmission( 615 void AutofillMetrics::LogNumberOfProfilesAtAutofillableFormSubmission(
616 size_t num_profiles) { 616 size_t num_profiles) {
617 UMA_HISTOGRAM_COUNTS( 617 UMA_HISTOGRAM_COUNTS(
618 "Autofill.StoredProfileCountAtAutofillableFormSubmission", num_profiles); 618 "Autofill.StoredProfileCountAtAutofillableFormSubmission", num_profiles);
619 } 619 }
620 620
621 // static 621 // static
622 void AutofillMetrics::LogHasModifiedProfileOnCreditCardFormSubmission(
623 bool has_modified_profile) {
624 UMA_HISTOGRAM_BOOLEAN("Autofill.HasModifiedProfile.CreditCardFormSubmission",
625 has_modified_profile);
626 }
627
628 // static
622 void AutofillMetrics::LogAddressSuggestionsCount(size_t num_suggestions) { 629 void AutofillMetrics::LogAddressSuggestionsCount(size_t num_suggestions) {
623 UMA_HISTOGRAM_COUNTS("Autofill.AddressSuggestionsCount", num_suggestions); 630 UMA_HISTOGRAM_COUNTS("Autofill.AddressSuggestionsCount", num_suggestions);
624 } 631 }
625 632
626 // static 633 // static
627 void AutofillMetrics::LogAutofillSuggestionAcceptedIndex(int index) { 634 void AutofillMetrics::LogAutofillSuggestionAcceptedIndex(int index) {
628 // A maximum of 50 is enforced to minimize the number of buckets generated. 635 // A maximum of 50 is enforced to minimize the number of buckets generated.
629 UMA_HISTOGRAM_SPARSE_SLOWLY("Autofill.SuggestionAcceptedIndex", 636 UMA_HISTOGRAM_SPARSE_SLOWLY("Autofill.SuggestionAcceptedIndex",
630 std::min(index, 50)); 637 std::min(index, 50));
631 638
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 DCHECK(!form_loaded_timestamp_.is_null()); 1162 DCHECK(!form_loaded_timestamp_.is_null());
1156 return (base::TimeTicks::Now() - form_loaded_timestamp_).InMilliseconds(); 1163 return (base::TimeTicks::Now() - form_loaded_timestamp_).InMilliseconds();
1157 } 1164 }
1158 1165
1159 void AutofillMetrics::FormInteractionsUkmLogger::GetNewSourceID() { 1166 void AutofillMetrics::FormInteractionsUkmLogger::GetNewSourceID() {
1160 source_id_ = ukm_service_->GetNewSourceID(); 1167 source_id_ = ukm_service_->GetNewSourceID();
1161 ukm_service_->UpdateSourceURL(source_id_, url_); 1168 ukm_service_->UpdateSourceURL(source_id_, url_);
1162 } 1169 }
1163 1170
1164 } // namespace autofill 1171 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698