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

Side by Side Diff: components/autofill/core/browser/autofill_metrics.h

Issue 2061303002: [Autofill] Log the number of profiles considered/removed during dedupe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean Created 4 years, 6 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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_metrics.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 // state of the form. 632 // state of the form.
633 static void LogAutofillFormSubmittedState(AutofillFormSubmittedState state); 633 static void LogAutofillFormSubmittedState(AutofillFormSubmittedState state);
634 634
635 // This should be called when determining the heuristic types for a form's 635 // This should be called when determining the heuristic types for a form's
636 // fields. 636 // fields.
637 static void LogDetermineHeuristicTypesTiming(const base::TimeDelta& duration); 637 static void LogDetermineHeuristicTypesTiming(const base::TimeDelta& duration);
638 638
639 // This should be called when parsing each form. 639 // This should be called when parsing each form.
640 static void LogParseFormTiming(const base::TimeDelta& duration); 640 static void LogParseFormTiming(const base::TimeDelta& duration);
641 641
642 // Log how many profiles were considered for the deduplication process.
643 static void LogNumberOfProfilesConsideredForDedupe(size_t num_considered);
644
645 // Log how many profiles were removed as part of the deduplication process.
646 static void LogNumberOfProfilesRemovedDuringDedupe(size_t num_removed);
647
642 // Utility to autofill form events in the relevant histograms depending on 648 // Utility to autofill form events in the relevant histograms depending on
643 // the presence of server and/or local data. 649 // the presence of server and/or local data.
644 class FormEventLogger { 650 class FormEventLogger {
645 public: 651 public:
646 FormEventLogger(bool is_for_credit_card); 652 FormEventLogger(bool is_for_credit_card);
647 653
648 inline void set_is_server_data_available(bool is_server_data_available) { 654 inline void set_is_server_data_available(bool is_server_data_available) {
649 is_server_data_available_ = is_server_data_available; 655 is_server_data_available_ = is_server_data_available;
650 } 656 }
651 657
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 bool logged_suggestion_filled_was_masked_server_card_; 693 bool logged_suggestion_filled_was_masked_server_card_;
688 }; 694 };
689 695
690 private: 696 private:
691 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); 697 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics);
692 }; 698 };
693 699
694 } // namespace autofill 700 } // namespace autofill
695 701
696 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 702 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698