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

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

Issue 1029233002: Autofill - don't prompt to unmask a credit card if the number isn't needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update histograms.xml Created 5 years, 9 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.h
diff --git a/components/autofill/core/browser/autofill_manager.h b/components/autofill/core/browser/autofill_manager.h
index 0568256c62f2b4d02892538e43be25c5cab2c5f2..159db47193881e7702bd6aec07c3ac749a19081f 100644
--- a/components/autofill/core/browser/autofill_manager.h
+++ b/components/autofill/core/browser/autofill_manager.h
@@ -260,6 +260,12 @@ class AutofillManager : public AutofillDownloadManager::Observer,
// based on it. Returns true if the credit card exists.
bool GetCreditCard(int unique_id, const CreditCard** credit_card);
+ // Determines whether a fill on |form| initiated from |field| will wind up
+ // filling a credit card number. This is useful to determine if we will need
+ // to unmask a card.
+ bool WillFillCreditCardNumber(const FormData& form,
+ const FormFieldData& field);
+
// Fills or previews the credit card form.
// Assumes the form and field are valid.
void FillOrPreviewCreditCardForm(

Powered by Google App Engine
This is Rietveld 408576698