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

Unified Diff: components/autofill/core/browser/autofill_metrics.h

Issue 2111863002: [Autofill] Debounce suggestions poll user actions for the same field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/autofill_metrics.h
diff --git a/components/autofill/core/browser/autofill_metrics.h b/components/autofill/core/browser/autofill_metrics.h
index 9f56976a9b5a60dd2aa79486fa42466dafba25cb..de9b8ff548078d54772e8327f29823b799651971 100644
--- a/components/autofill/core/browser/autofill_metrics.h
+++ b/components/autofill/core/browser/autofill_metrics.h
@@ -13,6 +13,7 @@
#include "components/autofill/core/browser/autofill_profile.h"
#include "components/autofill/core/browser/credit_card.h"
#include "components/autofill/core/browser/field_types.h"
+#include "components/autofill/core/common/form_field_data.h"
namespace base {
class TimeDelta;
@@ -661,7 +662,7 @@ class AutofillMetrics {
void OnDidInteractWithAutofillableForm();
- void OnDidPollSuggestions();
+ void OnDidPollSuggestions(const FormFieldData& field);
void OnDidShowSuggestions();
@@ -691,6 +692,9 @@ class AutofillMetrics {
bool has_logged_submitted_;
bool logged_suggestion_filled_was_server_data_;
bool logged_suggestion_filled_was_masked_server_card_;
+
+ // The last field that was polled for suggestions.
+ FormFieldData last_polled_field_;
};
private:
« no previous file with comments | « components/autofill/core/browser/autofill_manager.cc ('k') | components/autofill/core/browser/autofill_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698