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

Unified Diff: components/autofill/core/browser/payments/full_card_request.h

Issue 1926553002: Prompt for expiration date for local cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify the test cases Created 4 years, 8 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/payments/full_card_request.h
diff --git a/components/autofill/core/browser/payments/full_card_request.h b/components/autofill/core/browser/payments/full_card_request.h
index 77303d3a1599cd60c2d26738538f664257525734..5ffb16086dc826059dcc2390714f124d7a622a9f 100644
--- a/components/autofill/core/browser/payments/full_card_request.h
+++ b/components/autofill/core/browser/payments/full_card_request.h
@@ -61,6 +61,9 @@ class FullCardRequest : public CardUnmaskDelegate {
// Called by autofill client when the risk data has been loaded.
void OnDidGetUnmaskRiskData(const std::string& risk_data);
+ // Resets the state of the request.
+ void Reset();
+
// Responsible for showing the UI that prompts the user for the CVC and/or the
// updated expiration date.
AutofillClient* const autofill_client_;
@@ -77,6 +80,9 @@ class FullCardRequest : public CardUnmaskDelegate {
// The pending request to get a card's full PAN and CVC.
std::unique_ptr<payments::PaymentsClient::UnmaskRequestDetails> request_;
+ // Whether the card unmask request should be sent to the payment server.
+ bool should_unmask_card_;
+
// The timestamp when the full PAN was requested from a server. For
// histograms.
base::Time real_pan_request_timestamp_;

Powered by Google App Engine
This is Rietveld 408576698