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

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

Issue 2422363002: Trigger HTTP-bad warning when querying credit card autofill (Closed)
Patch Set: add missing blank line Created 4 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/autofill_manager.cc
diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc
index bd2b3ff39ab4b0f03d331864ee22dd0cdc109417..804026c2b4089d8130f9491d48b3e7d8d9e62a72 100644
--- a/components/autofill/core/browser/autofill_manager.cc
+++ b/components/autofill/core/browser/autofill_manager.cc
@@ -527,10 +527,12 @@ void AutofillManager::OnQueryFormFieldAutofill(int query_id,
// Logging interactions of forms that are autofillable.
if (got_autofillable_form) {
- if (autofill_field->Type().group() == CREDIT_CARD)
+ if (autofill_field->Type().group() == CREDIT_CARD) {
+ driver_->DidInteractWithCreditCardForm();
credit_card_form_event_logger_->OnDidInteractWithAutofillableForm();
- else
+ } else {
address_form_event_logger_->OnDidInteractWithAutofillableForm();
+ }
}
if (is_autofill_possible &&
« no previous file with comments | « components/autofill/core/browser/autofill_driver.h ('k') | components/autofill/core/browser/autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698