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

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

Issue 1540423004: Add card details and legal message to Android save credit card infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android 64-bit compile. Created 4 years, 11 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_client.h
diff --git a/components/autofill/core/browser/autofill_client.h b/components/autofill/core/browser/autofill_client.h
index a1faf806503048b97230ab5c6003e3fa94b993da..baf9a9052427d5e2f4a55c7ca84714e3727a6749 100644
--- a/components/autofill/core/browser/autofill_client.h
+++ b/components/autofill/core/browser/autofill_client.h
@@ -118,15 +118,17 @@ class AutofillClient {
base::WeakPtr<CardUnmaskDelegate> delegate) = 0;
virtual void OnUnmaskVerificationResult(PaymentsRpcResult result) = 0;
- // Runs |callback| if the credit card should be imported as personal
- // data. |metric_logger| can be used to log user actions.
- virtual void ConfirmSaveCreditCardLocally(const base::Closure& callback) = 0;
+ // Runs |callback| if the |card| should be imported as personal data.
+ // |metric_logger| can be used to log user actions.
+ virtual void ConfirmSaveCreditCardLocally(const CreditCard& card,
+ const base::Closure& callback) = 0;
- // Runs |callback| if the credit card should be uploaded to Payments. Displays
- // the contents of |legal_message| to the user.
+ // Runs |callback| if the |card| should be uploaded to Payments. Displays the
+ // contents of |legal_message| to the user.
virtual void ConfirmSaveCreditCardToCloud(
- const base::Closure& callback,
- scoped_ptr<base::DictionaryValue> legal_message) = 0;
+ const CreditCard& card,
+ scoped_ptr<base::DictionaryValue> legal_message,
+ const base::Closure& callback) = 0;
// Gathers risk data and provides it to |callback|.
virtual void LoadRiskData(

Powered by Google App Engine
This is Rietveld 408576698